## Publish sub-shapes, standing for arguments and sub-shapes of arguments
# To be used from python scripts out of geompy.addToStudy (non-default usage)
- # \param theStudy the study, in which theObject is published already,
- # and in which the arguments will be published
# \param theObject published GEOM object, arguments of which will be published
# \param theArgs list of GEOM_Object, operation arguments to be published.
# If this list is empty, all operation arguments will be published
RaiseIfFailed("MakePipeShellsWithoutPath", self.PrimOp)
return anObj
+ ## Create a shape by extrusion of the base shape along
+ # the path shape with constant bi-normal direction along the given vector.
+ # The path shape can be a wire or an edge.
+ # @param theBase Base shape to be extruded.
+ # @param thePath Path shape to extrude the base shape along it.
+ # @param theVec Vector defines a constant binormal direction to keep the
+ # same angle beetween the direction and the sections
+ # along the sweep surface.
+ # @return New GEOM_Object, containing the created pipe.
+ #
+ # @ref tui_creation_pipe "Example"
+ def MakePipeBiNormalAlongVector(self,theBase, thePath, theVec):
+ # Example: see GEOM_TestAll.py
+ anObj = self.PrimOp.MakePipeBiNormalAlongVector(theBase, thePath, theVec)
+ RaiseIfFailed("MakePipeBiNormalAlongVector", self.PrimOp)
+ return anObj
+
# end of l3_complex
## @}
RaiseIfFailed("DivideEdge", self.HealOp)
return anObj
- ## Change orientation of the given object.
+ ## Change orientation of the given object. Updates given shape.
# @param theObject Shape to be processed.
- # @update given shape
#
# @ref swig_todo "Example"
def ChangeOrientationShell(self,theObject):
## Scale the given object by the factor, creating its copy before the scaling.
# @param theObject The object to be scaled.
# @param thePoint Center point for scaling.
+ # Passing None for it means scaling relatively the origin of global CS.
# @param theFactor Scaling factor value.
# @return New GEOM_Object, containing the scaled shape.
#
# @ref tui_scale "Example"
- def MakeScaleTransform(self,theObject, thePoint, theFactor):
+ def MakeScaleTransform(self, theObject, thePoint, theFactor):
# Example: see GEOM_TestAll.py
anObj = self.TrsfOp.ScaleShapeCopy(theObject, thePoint, theFactor)
RaiseIfFailed("ScaleShapeCopy", self.TrsfOp)
return anObj
+ ## Scale the given object by different factors along coordinate axes,
+ # creating its copy before the scaling.
+ # @param theObject The object to be scaled.
+ # @param thePoint Center point for scaling.
+ # Passing None for it means scaling relatively the origin of global CS.
+ # @param theFactorX,theFactorY,theFactorZ Scaling factors along each axis.
+ # @return New GEOM_Object, containing the scaled shape.
+ #
+ # @ref swig_scale "Example"
+ def MakeScaleAlongAxes(self, theObject, thePoint, theFactorX, theFactorY, theFactorZ):
+ # Example: see GEOM_TestAll.py
+ anObj = self.TrsfOp.ScaleShapeAlongAxesCopy(theObject, thePoint,
+ theFactorX, theFactorY, theFactorZ)
+ RaiseIfFailed("MakeScaleAlongAxes", self.TrsfOp)
+ return anObj
+
## Create an object, symmetrical
# to the given one relatively the given plane.
# @param theObject The object to be mirrored.