From: srn Date: Mon, 27 Nov 2006 08:37:39 +0000 (+0000) Subject: SRN: Implemented method GetSame that seacrhes a shape equal to the given subshape... X-Git-Tag: V3_2_4pre1~9 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c2c992da71a555a89bb97394dd79750c6e5e2f27;p=modules%2Fgeom.git SRN: Implemented method GetSame that seacrhes a shape equal to the given subshape in the main shape. --- diff --git a/src/GEOM_SWIG/geompy.py b/src/GEOM_SWIG/geompy.py index 04890825b..1e3c84e51 100644 --- a/src/GEOM_SWIG/geompy.py +++ b/src/GEOM_SWIG/geompy.py @@ -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. # -----------------------------------------------------------------------------