PAL7508. Correct behaviour of GetShapesOnPlane().

This commit is contained in:
jfa 2005-01-21 10:44:46 +00:00
parent 23c12be7ac
commit 86973cfa9e
2 changed files with 2 additions and 4 deletions

View File

@ -1055,9 +1055,7 @@ Handle(TColStd_HSequenceOfTransient) GEOMImpl_IShapesOperations::GetShapesOnPlan
return NULL; return NULL;
} }
Handle(Geom_Plane) aPlane = new Geom_Plane(aLoc, - aVec); 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
// Call algo // Call algo
GEOMAlgo_FinderShapeOn aFinder; GEOMAlgo_FinderShapeOn aFinder;

View File

@ -338,7 +338,7 @@ def TestOtherOperations (geompy, math):
faces_on_pln = geompy.GetShapesOnPlane(blocksComp, geompy.ShapeType["FACE"], faces_on_pln = geompy.GetShapesOnPlane(blocksComp, geompy.ShapeType["FACE"],
v_0pp, geompy.GEOM.ST_ONIN) v_0pp, geompy.GEOM.ST_ONIN)
for face_i in faces_on_pln: 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 # GetShapesOnCylinder
edges_on_cyl = geompy.GetShapesOnCylinder(blocksComp, geompy.ShapeType["EDGE"], edges_on_cyl = geompy.GetShapesOnCylinder(blocksComp, geompy.ShapeType["EDGE"],