From: jfa Date: Fri, 21 Jan 2005 10:44:46 +0000 (+0000) Subject: PAL7508. Correct behaviour of GetShapesOnPlane(). X-Git-Tag: V2_2_0b2~13 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=86973cfa9e48360b23627a204bb57ef0377ddaa7;p=modules%2Fgeom.git PAL7508. Correct behaviour of GetShapesOnPlane(). --- diff --git a/src/GEOMImpl/GEOMImpl_IShapesOperations.cxx b/src/GEOMImpl/GEOMImpl_IShapesOperations.cxx index 60ef00367..787408df4 100644 --- a/src/GEOMImpl/GEOMImpl_IShapesOperations.cxx +++ b/src/GEOMImpl/GEOMImpl_IShapesOperations.cxx @@ -1055,9 +1055,7 @@ Handle(TColStd_HSequenceOfTransient) GEOMImpl_IShapesOperations::GetShapesOnPlan return NULL; } - Handle(Geom_Plane) aPlane = new Geom_Plane(aLoc, - aVec); - // The "-" is because interpretation of normale differs - // between interface and algorithm for the case of plane + Handle(Geom_Plane) aPlane = new Geom_Plane(aLoc, aVec); // Call algo GEOMAlgo_FinderShapeOn aFinder; diff --git a/src/GEOM_SWIG/GEOM_TestOthers.py b/src/GEOM_SWIG/GEOM_TestOthers.py index 0d2c4fd6f..220b37e24 100644 --- a/src/GEOM_SWIG/GEOM_TestOthers.py +++ b/src/GEOM_SWIG/GEOM_TestOthers.py @@ -338,7 +338,7 @@ def TestOtherOperations (geompy, math): faces_on_pln = geompy.GetShapesOnPlane(blocksComp, geompy.ShapeType["FACE"], v_0pp, geompy.GEOM.ST_ONIN) for face_i in faces_on_pln: - geompy.addToStudy(face_i, "Face on Plane or in direction of normale (0, 1, 1)") + geompy.addToStudy(face_i, "Face on Plane (N = (0, 1, 1)) or below it") # GetShapesOnCylinder edges_on_cyl = geompy.GetShapesOnCylinder(blocksComp, geompy.ShapeType["EDGE"],