# @return Group of all found sub-shapes or a single found sub-shape.
#
# Example: see GEOM_TestOthers.py
- def GetInPlaceByHistory(theShapeWhere, theShapeWhat):
- anObj = ShapesOp.GetInPlaceByHistory(theShapeWhere, theShapeWhat)
- if ShapesOp.IsDone() == 0:
- print "GetInPlace : ", ShapesOp.GetErrorCode()
+ def GetInPlaceByHistory(self, theShapeWhere, theShapeWhat):
+ anObj = self.ShapesOp.GetInPlaceByHistory(theShapeWhere, theShapeWhat)
+ if self.ShapesOp.IsDone() == 0:
+ print "GetInPlace : ", self.ShapesOp.GetErrorCode()
return anObj
## Get sub-shape of theShapeWhere, which is
# @return New GEOM_Object, containing a copy of theShape without coincident faces.
#
# Example: see GEOM_Spanner.py
- def MakeGlueFaces(theShape, theTolerance, doKeepNonSolids=True):
- anObj = ShapesOp.MakeGlueFaces(theShape, theTolerance, doKeepNonSolids)
+ def MakeGlueFaces(self, theShape, theTolerance, doKeepNonSolids=True):
+ anObj = self.ShapesOp.MakeGlueFaces(theShape, theTolerance, doKeepNonSolids)
if self.ShapesOp.IsDone() == 0:
print "MakeGlueFaces : ", self.ShapesOp.GetErrorCode()
return anObj
# without some faces.
#
# Example: see GEOM_Spanner.py
- def MakeGlueFacesByList(theShape, theTolerance, theFaces, doKeepNonSolids=True):
- anObj = ShapesOp.MakeGlueFacesByList(theShape, theTolerance, theFaces, doKeepNonSolids)
+ def MakeGlueFacesByList(self, theShape, theTolerance, theFaces, doKeepNonSolids=True):
+ anObj = self.ShapesOp.MakeGlueFacesByList(theShape, theTolerance, theFaces, doKeepNonSolids)
if self.ShapesOp.IsDone() == 0:
print "MakeGlueFacesByList : ", self.ShapesOp.GetErrorCode()
return anObj
# @return New GEOM_Object, containing the result shapes.
#
# Example: see GEOM_TestAll.py
- def MakePartition(self,ListShapes, ListTools=[], ListKeepInside=[], ListRemoveInside=[],
+ def MakePartition(self, ListShapes, ListTools=[], ListKeepInside=[], ListRemoveInside=[],
Limit=ShapeType["SHAPE"], RemoveWebs=0, ListMaterials=[],
KeepNonlimitShapes=0):
anObj = self.BoolOp.MakePartition(ListShapes, ListTools,
#
# @return New GEOM_Object, containing the result shapes.
#
- def MakePartitionNonSelfIntersectedShape(ListShapes, ListTools=[],
+ def MakePartitionNonSelfIntersectedShape(self, ListShapes, ListTools=[],
ListKeepInside=[], ListRemoveInside=[],
Limit=ShapeType["SHAPE"], RemoveWebs=0,
ListMaterials=[], KeepNonlimitShapes=0):
## Shortcut to MakePartition()
#
# Example: see GEOM_TestOthers.py
- def Partition(self,ListShapes, ListTools=[], ListKeepInside=[], ListRemoveInside=[],
+ def Partition(self, ListShapes, ListTools=[], ListKeepInside=[], ListRemoveInside=[],
Limit=ShapeType["SHAPE"], RemoveWebs=0, ListMaterials=[],
KeepNonlimitShapes=0):
anObj = self.MakePartition(ListShapes, ListTools,