From: eap Date: Tue, 4 May 2010 07:15:06 +0000 (+0000) Subject: 0020081: EDF 886 GEOM : GetShapesOnCylinderWithLocation function in TUI X-Git-Tag: V5_1_4rc1~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=52fb41a9cc417e4fce4107673c3c0a07f74480f0;p=modules%2Fgeom.git 0020081: EDF 886 GEOM : GetShapesOnCylinderWithLocation function in TUI * add examlpe for GetShapesOnCylinderWithLocationIDs() --- diff --git a/src/GEOM_SWIG/GEOM_TestOthers.py b/src/GEOM_SWIG/GEOM_TestOthers.py index d69e2cea7..ca37dd30b 100644 --- a/src/GEOM_SWIG/GEOM_TestOthers.py +++ b/src/GEOM_SWIG/GEOM_TestOthers.py @@ -556,14 +556,14 @@ def TestOtherOperations (geompy, math): edges_out_cyl = geompy.GetShapesOnCylinderWithLocation(blocksComp, geompy.ShapeType["EDGE"], vy, p11, 55, geompy.GEOM.ST_OUT) for edge_i in edges_out_cyl: - geompy.addToStudy(edge_i, "Edge out of Cylinder (axis = (0, 1, 0), r = 55)") + geompy.addToStudy(edge_i, "Edge out of Cylinder (axis = (0, 1, 0), loc = (0, 0, 0), r = 55)") - # GetShapesOnCylinderIDs - edges_in_cyl_ids = geompy.GetShapesOnCylinderIDs(blocksComp, geompy.ShapeType["EDGE"], - vy, 80, geompy.GEOM.ST_IN) + # GetShapesOnCylinderWithLocationIDs + edges_in_cyl_ids = geompy.GetShapesOnCylinderWithLocationIDs(blocksComp, geompy.ShapeType["EDGE"], + vy, p11, 80, geompy.GEOM.ST_IN) edges_in = geompy.CreateGroup(blocksComp, geompy.ShapeType["EDGE"]) geompy.UnionIDs(edges_in, edges_in_cyl_ids) - geompy.addToStudy(edges_in, "Group of edges inside Cylinder (axis = (0, 1, 0), r = 55)") + geompy.addToStudy(edges_in, "Group of edges inside Cylinder (axis = (0, 1, 0), loc = (0, 0, 0), r = 80)") # GetShapesOnSphere vertices_on_sph = geompy.GetShapesOnSphere(blocksComp, geompy.ShapeType["VERTEX"],