From c2c992da71a555a89bb97394dd79750c6e5e2f27 Mon Sep 17 00:00:00 2001 From: srn Date: Mon, 27 Nov 2006 08:37:39 +0000 Subject: [PATCH] SRN: Implemented method GetSame that seacrhes a shape equal to the given subshape in the main shape. --- src/GEOM_SWIG/geompy.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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. # ----------------------------------------------------------------------------- -- 2.39.2