]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
SRN: Implemented method GetSame that seacrhes a shape equal to the given subshape...
authorsrn <srn@opencascade.com>
Mon, 27 Nov 2006 08:37:39 +0000 (08:37 +0000)
committersrn <srn@opencascade.com>
Mon, 27 Nov 2006 08:37:39 +0000 (08:37 +0000)
src/GEOM_SWIG/geompy.py

index 04890825b0771dbc5e701bc8b0c5ada941af346a..1e3c84e51babee2b1a3bb7e0c7aa9bd4b5c78f39 100644 (file)
@@ -1021,6 +1021,18 @@ def GetInPlace(theShapeWhere, theShapeWhat):
       print "GetInPlace : ", ShapesOp.GetErrorCode()
     return anObj
 
+## Get sub-shape of theShapeWhere, which is
+#  equal to \a theShapeWhat.
+#  @param theShapeWhere Shape to find sub-shape of.
+#  @param theShapeWhat Shape, specifying what to find.
+#  @return New GEOM_Object for found sub-shape.
+#
+def GetSame(theShapeWhere, theShapeWhat):
+    anObj = ShapesOp.GetSame(theShapeWhere, theShapeWhat)
+    if ShapesOp.IsDone() == 0:
+      print "GetSame : ", ShapesOp.GetErrorCode()
+    return anObj
+
 # -----------------------------------------------------------------------------
 # Access to sub-shapes by their unique IDs inside the main shape.
 # -----------------------------------------------------------------------------