mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-04-24 01:22:05 +05:00
SRN: Implemented method GetSame that seacrhes a shape equal to the given subshape in the main shape.
This commit is contained in:
parent
cf71da0571
commit
c2c992da71
@ -1021,6 +1021,18 @@ def GetInPlace(theShapeWhere, theShapeWhat):
|
|||||||
print "GetInPlace : ", ShapesOp.GetErrorCode()
|
print "GetInPlace : ", ShapesOp.GetErrorCode()
|
||||||
return anObj
|
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.
|
# Access to sub-shapes by their unique IDs inside the main shape.
|
||||||
# -----------------------------------------------------------------------------
|
# -----------------------------------------------------------------------------
|
||||||
|
Loading…
x
Reference in New Issue
Block a user