From 86973cfa9e48360b23627a204bb57ef0377ddaa7 Mon Sep 17 00:00:00 2001 From: jfa Date: Fri, 21 Jan 2005 10:44:46 +0000 Subject: [PATCH] PAL7508. Correct behaviour of GetShapesOnPlane(). --- src/GEOMImpl/GEOMImpl_IShapesOperations.cxx | 4 +--- src/GEOM_SWIG/GEOM_TestOthers.py | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) 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"], -- 2.39.2