# @param theShape2 Second argument for boolean operation.
# @param checkSelfInte The flag that tells if the arguments should
# be checked for self-intersection prior to the operation.
+ # @param rmExtraEdges The flag that tells if Remove Extra Edges
+ # operation should be performed during the operation.
# @param theName Object name; when specified, this parameter is used
# for result publication in the study. Otherwise, if automatic
# publication is switched on, default value is used for result name.
#
# @ref tui_fuse "Example 1"
# \n @ref swig_MakeCommon "Example 2"
- def MakeFuse(self, theShape1, theShape2, checkSelfInte=False, theName=None):
+ def MakeFuse(self, theShape1, theShape2, checkSelfInte=False,
+ rmExtraEdges=False, theName=None):
"""
Perform Fuse boolean operation on two given shapes.
checkSelfInte The flag that tells if the arguments should
be checked for self-intersection prior to
the operation.
+ rmExtraEdges The flag that tells if Remove Extra Edges
+ operation should be performed during the operation.
theName Object name; when specified, this parameter is used
for result publication in the study. Otherwise, if automatic
publication is switched on, default value is used for result name.
"""
# Example: see GEOM_TestOthers.py
- # note: auto-publishing is done in self.MakeBoolean()
- return self.MakeBoolean(theShape1, theShape2, 3, checkSelfInte, theName)
+ anObj = self.BoolOp.MakeFuse(theShape1, theShape2,
+ checkSelfInte, rmExtraEdges)
+ RaiseIfFailed("MakeFuse", self.BoolOp)
+ self._autoPublish(anObj, theName, "fuse")
+ return anObj
## Perform Section boolean operation on two given shapes.
# @param theShape1 First argument for boolean operation.
# @param theShapesList Shapes to be fused.
# @param checkSelfInte The flag that tells if the arguments should
# be checked for self-intersection prior to the operation.
+ # @param rmExtraEdges The flag that tells if Remove Extra Edges
+ # operation should be performed during the operation.
# @param theName Object name; when specified, this parameter is used
# for result publication in the study. Otherwise, if automatic
# publication is switched on, default value is used for result name.
#
# @ref tui_fuse "Example 1"
# \n @ref swig_MakeCommon "Example 2"
- def MakeFuseList(self, theShapesList, checkSelfInte=False, theName=None):
+ def MakeFuseList(self, theShapesList, checkSelfInte=False,
+ rmExtraEdges=False, theName=None):
"""
Perform Fuse boolean operation on the list of shapes.
checkSelfInte The flag that tells if the arguments should
be checked for self-intersection prior to
the operation.
+ rmExtraEdges The flag that tells if Remove Extra Edges
+ operation should be performed during the operation.
theName Object name; when specified, this parameter is used
for result publication in the study. Otherwise, if automatic
publication is switched on, default value is used for result name.
"""
# Example: see GEOM_TestOthers.py
- anObj = self.BoolOp.MakeFuseList(theShapesList, checkSelfInte)
+ anObj = self.BoolOp.MakeFuseList(theShapesList, checkSelfInte,
+ rmExtraEdges)
RaiseIfFailed("MakeFuseList", self.BoolOp)
self._autoPublish(anObj, theName, "fuse")
return anObj
Returns:
New GEOM_Object, containing the created shape.
"""
- anObj = self.AdvOp.MakeSmoothingSurface
- (thelPoints, theNbMax, theDegMax, theDMax)
+ anObj = self.AdvOp.MakeSmoothingSurface(thelPoints, theNbMax,
+ theDegMax, theDMax)
RaiseIfFailed("MakeSmoothingSurface", self.AdvOp)
self._autoPublish(anObj, theName, "smoothing")
return anObj