Version: 8.3.0
Home
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Transformation Operations

Functions

def TranslateTwoPoints
 Translate the given object along the vector, specified by its end points. More...
 
def MakeTranslationTwoPoints
 Translate the given object along the vector, specified by its end points, creating its copy before the translation. More...
 
def TranslateDXDYDZ
 Translate the given object along the vector, specified by its components. More...
 
def MakeTranslation
 Translate the given object along the vector, specified by its components, creating its copy before the translation. More...
 
def TranslateVector
 Translate the given object along the given vector. More...
 
def MakeTranslationVector
 Translate the given object along the given vector, creating its copy before the translation. More...
 
def TranslateVectorDistance
 Translate the given object along the given vector on given distance. More...
 
def MakeTranslationVectorDistance
 Translate the given object along the given vector on given distance, creating its copy before the translation. More...
 
def Rotate
 Rotate the given object around the given axis on the given angle. More...
 
def MakeRotation
 Rotate the given object around the given axis on the given angle, creating its copy before the rotation. More...
 
def RotateThreePoints
 Rotate given object around vector perpendicular to plane containing three points. More...
 
def MakeRotationThreePoints
 Rotate given object around vector perpendicular to plane containing three points, creating its copy before the rotatation. More...
 
def Scale
 Scale the given object by the specified factor. More...
 
def MakeScaleTransform
 Scale the given object by the factor, creating its copy before the scaling. More...
 
def ScaleAlongAxes
 Scale the given object by different factors along coordinate axes. More...
 
def MakeScaleAlongAxes
 Scale the given object by different factors along coordinate axes, creating its copy before the scaling. More...
 
def MirrorByPlane
 Mirror an object relatively the given plane. More...
 
def MakeMirrorByPlane
 Create an object, symmetrical to the given one relatively the given plane. More...
 
def MirrorByAxis
 Mirror an object relatively the given axis. More...
 
def MakeMirrorByAxis
 Create an object, symmetrical to the given one relatively the given axis. More...
 
def MirrorByPoint
 Mirror an object relatively the given point. More...
 
def MakeMirrorByPoint
 Create an object, symmetrical to the given one relatively the given point. More...
 
def Position
 Modify the location of the given object. More...
 
def MakePosition
 Modify the Location of the given object by LCS, creating its copy before the setting. More...
 
def PositionAlongPath
 Modify the Location of the given object by Path. More...
 
def MakePositionAlongPath
 Modify the Location of the given object by Path, creating its copy before the operation. More...
 
def Offset
 Offset given shape. More...
 
def MakeOffset
 Create new object as offset of the given one. More...
 
def MakeProjection
 Create new object as projection of the given one on another. More...
 
def MakeProjectionOnWire
 Create a projection of the given point on a wire or an edge. More...
 
def MakeMultiTranslation1D
 Translate the given object along the given vector a given number times. More...
 
def MakeMultiTranslation2D
 Conseqently apply two specified translations to theObject specified number of times. More...
 
def MultiRotate1DNbTimes
 Rotate the given object around the given axis a given number times. More...
 
def MultiRotate1DByStep
 Rotate the given object around the given axis a given number times on the given angle. More...
 
def MultiRotate2DNbTimes
 Rotate the given object around the given axis a given number times and multi-translate each rotation result. More...
 
def MultiRotate2DByStep
 Rotate the given object around the given axis on the given angle a given number times and multi-translate each rotation result. More...
 
def MakeMultiRotation1DNbTimes
 The same, as MultiRotate1DNbTimes(), but axis is given by direction and point. More...
 
def MakeMultiRotation1DByStep
 The same, as MultiRotate1DByStep(), but axis is given by direction and point. More...
 
def MakeMultiRotation2DNbTimes
 The same, as MultiRotate2DNbTimes(), but axis is given by direction and point. More...
 
def MakeMultiRotation2DByStep
 The same, as MultiRotate2DByStep(), but axis is given by direction and point. More...
 
def MakeProjectionOnCylinder
 Compute a wire or a face that represents a projection of the source shape onto cylinder. More...
 

Detailed Description

Function Documentation

def TranslateTwoPoints (   self,
  theObject,
  thePoint1,
  thePoint2,
  theCopy = False 
)

Translate the given object along the vector, specified by its end points.

Parameters
theObjectThe object to be translated.
thePoint1Start point of translation vector.
thePoint2End point of translation vector.
theCopyFlag used to translate object itself or create a copy.
Returns
Translated theObject (GEOM.GEOM_Object) if theCopy flag is False (default) or new GEOM.GEOM_Object, containing the translated object if theCopy flag is True.

References geomBuilder.ManageTransactions(), geomBuilder.RaiseIfFailed(), and geomBuilder.TrsfOp.

def MakeTranslationTwoPoints (   self,
  theObject,
  thePoint1,
  thePoint2,
  theName = None 
)

Translate the given object along the vector, specified by its end points, creating its copy before the translation.

Parameters
theObjectThe object to be translated.
thePoint1Start point of translation vector.
thePoint2End point of translation vector.
theNameObject 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.
Returns
New GEOM.GEOM_Object, containing the translated object.

Example 1
Example 2

References geomBuilder._autoPublish(), geomBuilder.ManageTransactions(), geomBuilder.RaiseIfFailed(), and geomBuilder.TrsfOp.

def TranslateDXDYDZ (   self,
  theObject,
  theDX,
  theDY,
  theDZ,
  theCopy = False 
)

Translate the given object along the vector, specified by its components.

Parameters
theObjectThe object to be translated.
theDX,theDY,theDZComponents of translation vector.
theCopyFlag used to translate object itself or create a copy.
Returns
Translated theObject (GEOM.GEOM_Object) if theCopy flag is False (default) or new GEOM.GEOM_Object, containing the translated object if theCopy flag is True.

Example

References geomBuilder.ManageTransactions(), geomBuilder.ParseParameters(), geomBuilder.RaiseIfFailed(), and geomBuilder.TrsfOp.

def MakeTranslation (   self,
  theObject,
  theDX,
  theDY,
  theDZ,
  theName = None 
)

Translate the given object along the vector, specified by its components, creating its copy before the translation.

Parameters
theObjectThe object to be translated.
theDX,theDY,theDZComponents of translation vector.
theNameObject 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.
Returns
New GEOM.GEOM_Object, containing the translated object.

Example

References geomBuilder._autoPublish(), geomBuilder.ManageTransactions(), geomBuilder.ParseParameters(), geomBuilder.RaiseIfFailed(), and geomBuilder.TrsfOp.

def TranslateVector (   self,
  theObject,
  theVector,
  theCopy = False 
)

Translate the given object along the given vector.

Parameters
theObjectThe object to be translated.
theVectorThe translation vector.
theCopyFlag used to translate object itself or create a copy.
Returns
Translated theObject (GEOM.GEOM_Object) if theCopy flag is False (default) or new GEOM.GEOM_Object, containing the translated object if theCopy flag is True.

References geomBuilder.ManageTransactions(), geomBuilder.RaiseIfFailed(), and geomBuilder.TrsfOp.

def MakeTranslationVector (   self,
  theObject,
  theVector,
  theName = None 
)

Translate the given object along the given vector, creating its copy before the translation.

Parameters
theObjectThe object to be translated.
theVectorThe translation vector.
theNameObject 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.
Returns
New GEOM.GEOM_Object, containing the translated object.

Example

References geomBuilder._autoPublish(), geomBuilder.ManageTransactions(), geomBuilder.RaiseIfFailed(), and geomBuilder.TrsfOp.

def TranslateVectorDistance (   self,
  theObject,
  theVector,
  theDistance,
  theCopy = False 
)

Translate the given object along the given vector on given distance.

Parameters
theObjectThe object to be translated.
theVectorThe translation vector.
theDistanceThe translation distance.
theCopyFlag used to translate object itself or create a copy.
Returns
Translated theObject (GEOM.GEOM_Object) if theCopy flag is False (default) or new GEOM.GEOM_Object, containing the translated object if theCopy flag is True.

Example

References geomBuilder.ManageTransactions(), geomBuilder.ParseParameters(), geomBuilder.RaiseIfFailed(), and geomBuilder.TrsfOp.

def MakeTranslationVectorDistance (   self,
  theObject,
  theVector,
  theDistance,
  theName = None 
)

Translate the given object along the given vector on given distance, creating its copy before the translation.

Parameters
theObjectThe object to be translated.
theVectorThe translation vector.
theDistanceThe translation distance.
theNameObject 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.
Returns
New GEOM.GEOM_Object, containing the translated object.

Example

References geomBuilder._autoPublish(), geomBuilder.ManageTransactions(), geomBuilder.ParseParameters(), geomBuilder.RaiseIfFailed(), and geomBuilder.TrsfOp.

def Rotate (   self,
  theObject,
  theAxis,
  theAngle,
  theCopy = False 
)

Rotate the given object around the given axis on the given angle.

Parameters
theObjectThe object to be rotated.
theAxisRotation axis.
theAngleRotation angle in radians.
theCopyFlag used to rotate object itself or create a copy.
Returns
Rotated theObject (GEOM.GEOM_Object) if theCopy flag is False (default) or new GEOM.GEOM_Object, containing the rotated object if theCopy flag is True.

Example

References geomBuilder.ManageTransactions(), geomBuilder.ParseParameters(), geomBuilder.RaiseIfFailed(), and geomBuilder.TrsfOp.

def MakeRotation (   self,
  theObject,
  theAxis,
  theAngle,
  theName = None 
)

Rotate the given object around the given axis on the given angle, creating its copy before the rotation.

Parameters
theObjectThe object to be rotated.
theAxisRotation axis.
theAngleRotation angle in radians.
theNameObject 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.
Returns
New GEOM.GEOM_Object, containing the rotated object.

Example

References geomBuilder._autoPublish(), geomBuilder.ManageTransactions(), geomBuilder.ParseParameters(), geomBuilder.RaiseIfFailed(), and geomBuilder.TrsfOp.

def RotateThreePoints (   self,
  theObject,
  theCentPoint,
  thePoint1,
  thePoint2,
  theCopy = False 
)

Rotate given object around vector perpendicular to plane containing three points.

Parameters
theObjectThe object to be rotated.
theCentPointcentral point the axis is the vector perpendicular to the plane containing the three points.
thePoint1,thePoint2points in a perpendicular plane of the axis.
theCopyFlag used to rotate object itself or create a copy.
Returns
Rotated theObject (GEOM.GEOM_Object) if theCopy flag is False (default) or new GEOM.GEOM_Object, containing the rotated object if theCopy flag is True.

References geomBuilder.ManageTransactions(), geomBuilder.RaiseIfFailed(), and geomBuilder.TrsfOp.

def MakeRotationThreePoints (   self,
  theObject,
  theCentPoint,
  thePoint1,
  thePoint2,
  theName = None 
)

Rotate given object around vector perpendicular to plane containing three points, creating its copy before the rotatation.

Parameters
theObjectThe object to be rotated.
theCentPointcentral point the axis is the vector perpendicular to the plane containing the three points.
thePoint1,thePoint2in a perpendicular plane of the axis.
theNameObject 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.
Returns
New GEOM.GEOM_Object, containing the rotated object.

Example

References geomBuilder._autoPublish(), geomBuilder.ManageTransactions(), geomBuilder.RaiseIfFailed(), and geomBuilder.TrsfOp.

def Scale (   self,
  theObject,
  thePoint,
  theFactor,
  theCopy = False 
)

Scale the given object by the specified factor.

Parameters
theObjectThe object to be scaled.
thePointCenter point for scaling. Passing None for it means scaling relatively the origin of global CS.
theFactorScaling factor value.
theCopyFlag used to scale object itself or create a copy.
Returns
Scaled theObject (GEOM.GEOM_Object) if theCopy flag is False (default) or new GEOM.GEOM_Object, containing the scaled object if theCopy flag is True.

References geomBuilder.ManageTransactions(), geomBuilder.ParseParameters(), geomBuilder.RaiseIfFailed(), and geomBuilder.TrsfOp.

def MakeScaleTransform (   self,
  theObject,
  thePoint,
  theFactor,
  theName = None 
)

Scale the given object by the factor, creating its copy before the scaling.

Parameters
theObjectThe object to be scaled.
thePointCenter point for scaling. Passing None for it means scaling relatively the origin of global CS.
theFactorScaling factor value.
theNameObject 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.
Returns
New GEOM.GEOM_Object, containing the scaled shape.

Example

References geomBuilder._autoPublish(), geomBuilder.ManageTransactions(), geomBuilder.ParseParameters(), geomBuilder.RaiseIfFailed(), and geomBuilder.TrsfOp.

def ScaleAlongAxes (   self,
  theObject,
  thePoint,
  theFactorX,
  theFactorY,
  theFactorZ,
  theCopy = False 
)

Scale the given object by different factors along coordinate axes.

Parameters
theObjectThe object to be scaled.
thePointCenter point for scaling. Passing None for it means scaling relatively the origin of global CS.
theFactorX,theFactorY,theFactorZScaling factors along each axis.
theCopyFlag used to scale object itself or create a copy.
Returns
Scaled theObject (GEOM.GEOM_Object) if theCopy flag is False (default) or new GEOM.GEOM_Object, containing the scaled object if theCopy flag is True.

References geomBuilder.ManageTransactions(), geomBuilder.ParseParameters(), geomBuilder.RaiseIfFailed(), and geomBuilder.TrsfOp.

def MakeScaleAlongAxes (   self,
  theObject,
  thePoint,
  theFactorX,
  theFactorY,
  theFactorZ,
  theName = None 
)

Scale the given object by different factors along coordinate axes, creating its copy before the scaling.

Parameters
theObjectThe object to be scaled.
thePointCenter point for scaling. Passing None for it means scaling relatively the origin of global CS.
theFactorX,theFactorY,theFactorZScaling factors along each axis.
theNameObject 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.
Returns
New GEOM.GEOM_Object, containing the scaled shape.

Example

References geomBuilder._autoPublish(), geomBuilder.ManageTransactions(), geomBuilder.ParseParameters(), geomBuilder.RaiseIfFailed(), and geomBuilder.TrsfOp.

def MirrorByPlane (   self,
  theObject,
  thePlane,
  theCopy = False 
)

Mirror an object relatively the given plane.

Parameters
theObjectThe object to be mirrored.
thePlanePlane of symmetry.
theCopyFlag used to mirror object itself or create a copy.
Returns
Mirrored theObject (GEOM.GEOM_Object) if theCopy flag is False (default) or new GEOM.GEOM_Object, containing the mirrored object if theCopy flag is True.

References geomBuilder.ManageTransactions(), geomBuilder.RaiseIfFailed(), and geomBuilder.TrsfOp.

def MakeMirrorByPlane (   self,
  theObject,
  thePlane,
  theName = None 
)

Create an object, symmetrical to the given one relatively the given plane.

Parameters
theObjectThe object to be mirrored.
thePlanePlane of symmetry.
theNameObject 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.
Returns
New GEOM.GEOM_Object, containing the mirrored shape.

Example

References geomBuilder._autoPublish(), geomBuilder.ManageTransactions(), geomBuilder.RaiseIfFailed(), and geomBuilder.TrsfOp.

def MirrorByAxis (   self,
  theObject,
  theAxis,
  theCopy = False 
)

Mirror an object relatively the given axis.

Parameters
theObjectThe object to be mirrored.
theAxisAxis of symmetry.
theCopyFlag used to mirror object itself or create a copy.
Returns
Mirrored theObject (GEOM.GEOM_Object) if theCopy flag is False (default) or new GEOM.GEOM_Object, containing the mirrored object if theCopy flag is True.

References geomBuilder.ManageTransactions(), geomBuilder.RaiseIfFailed(), and geomBuilder.TrsfOp.

def MakeMirrorByAxis (   self,
  theObject,
  theAxis,
  theName = None 
)

Create an object, symmetrical to the given one relatively the given axis.

Parameters
theObjectThe object to be mirrored.
theAxisAxis of symmetry.
theNameObject 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.
Returns
New GEOM.GEOM_Object, containing the mirrored shape.

Example

References geomBuilder._autoPublish(), geomBuilder.ManageTransactions(), geomBuilder.RaiseIfFailed(), and geomBuilder.TrsfOp.

def MirrorByPoint (   self,
  theObject,
  thePoint,
  theCopy = False 
)

Mirror an object relatively the given point.

Parameters
theObjectThe object to be mirrored.
thePointPoint of symmetry.
theCopyFlag used to mirror object itself or create a copy.
Returns
Mirrored theObject (GEOM.GEOM_Object) if theCopy flag is False (default) or new GEOM.GEOM_Object, containing the mirrored object if theCopy flag is True.

References geomBuilder.ManageTransactions(), geomBuilder.RaiseIfFailed(), and geomBuilder.TrsfOp.

def MakeMirrorByPoint (   self,
  theObject,
  thePoint,
  theName = None 
)

Create an object, symmetrical to the given one relatively the given point.

Parameters
theObjectThe object to be mirrored.
thePointPoint of symmetry.
theNameObject 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.
Returns
New GEOM.GEOM_Object, containing the mirrored shape.

Example

References geomBuilder._autoPublish(), geomBuilder.ManageTransactions(), geomBuilder.RaiseIfFailed(), and geomBuilder.TrsfOp.

def Position (   self,
  theObject,
  theStartLCS,
  theEndLCS,
  theCopy = False 
)

Modify the location of the given object.

Parameters
theObjectThe object to be displaced.
theStartLCSCoordinate system to perform displacement from it.
If theStartLCS is NULL, displacement will be performed from global CS.
If theObject itself is used as theStartLCS, its location will be changed to theEndLCS.
theEndLCSCoordinate system to perform displacement to it.
theCopyFlag used to displace object itself or create a copy.
Returns
Displaced theObject (GEOM.GEOM_Object) if theCopy flag is False (default) or new GEOM.GEOM_Object, containing the displaced object if theCopy flag is True.

References geomBuilder.ManageTransactions(), geomBuilder.RaiseIfFailed(), and geomBuilder.TrsfOp.

def MakePosition (   self,
  theObject,
  theStartLCS,
  theEndLCS,
  theName = None 
)

Modify the Location of the given object by LCS, creating its copy before the setting.

Parameters
theObjectThe object to be displaced.
theStartLCSCoordinate system to perform displacement from it.
If theStartLCS is NULL, displacement will be performed from global CS.
If theObject itself is used as theStartLCS, its location will be changed to theEndLCS.
theEndLCSCoordinate system to perform displacement to it.
theNameObject 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.
Returns
New GEOM.GEOM_Object, containing the displaced shape.

Example

References geomBuilder._autoPublish(), geomBuilder.ManageTransactions(), geomBuilder.RaiseIfFailed(), and geomBuilder.TrsfOp.

def PositionAlongPath (   self,
  theObject,
  thePath,
  theDistance,
  theCopy,
  theReverse 
)

Modify the Location of the given object by Path.

Parameters
theObjectThe object to be displaced.
thePathWire or Edge along that the object will be translated.
theDistanceprogress of Path (0 = start location, 1 = end of path location).
theCopyis to create a copy objects if true.
theReverse0 - for usual direction, 1 - to reverse path direction.
Returns
Displaced theObject (GEOM.GEOM_Object) if theCopy is False or new GEOM.GEOM_Object, containing the displaced shape if theCopy is True.

Example

References geomBuilder.ManageTransactions(), geomBuilder.RaiseIfFailed(), and geomBuilder.TrsfOp.

def MakePositionAlongPath (   self,
  theObject,
  thePath,
  theDistance,
  theReverse,
  theName = None 
)

Modify the Location of the given object by Path, creating its copy before the operation.

Parameters
theObjectThe object to be displaced.
thePathWire or Edge along that the object will be translated.
theDistanceprogress of Path (0 = start location, 1 = end of path location).
theReverse0 - for usual direction, 1 - to reverse path direction.
theNameObject 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.
Returns
New GEOM.GEOM_Object, containing the displaced shape.

References geomBuilder._autoPublish(), geomBuilder.ManageTransactions(), geomBuilder.RaiseIfFailed(), and geomBuilder.TrsfOp.

def Offset (   self,
  theObject,
  theOffset,
  theCopy = False 
)

Offset given shape.

Parameters
theObjectThe base object for the offset.
theOffsetOffset value.
theCopyFlag used to offset object itself or create a copy.
Returns
Modified theObject (GEOM.GEOM_Object) if theCopy flag is False (default) or new GEOM.GEOM_Object, containing the result of offset operation if theCopy flag is True.

References geomBuilder.ManageTransactions(), geomBuilder.ParseParameters(), geomBuilder.RaiseIfFailed(), and geomBuilder.TrsfOp.

def MakeOffset (   self,
  theObject,
  theOffset,
  theName = None 
)

Create new object as offset of the given one.

Parameters
theObjectThe base object for the offset.
theOffsetOffset value.
theNameObject 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.
Returns
New GEOM.GEOM_Object, containing the offset object.

Example

References geomBuilder._autoPublish(), geomBuilder.ManageTransactions(), geomBuilder.ParseParameters(), geomBuilder.RaiseIfFailed(), and geomBuilder.TrsfOp.

def MakeProjection (   self,
  theSource,
  theTarget,
  theName = None 
)

Create new object as projection of the given one on another.

Parameters
theSourceThe source object for the projection. It can be a point, edge or wire. Edge and wire are acceptable if theTarget is a face.
theTargetThe target object. It can be planar or cylindrical face, edge or wire.
theNameObject 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.
Returns
New GEOM.GEOM_Object, containing the projection.

Example

References geomBuilder._autoPublish(), geomBuilder.ManageTransactions(), geomBuilder.RaiseIfFailed(), and geomBuilder.TrsfOp.

def MakeProjectionOnWire (   self,
  thePoint,
  theWire,
  theName = None 
)

Create a projection of the given point on a wire or an edge.

If there are no solutions or there are 2 or more solutions It throws an exception.

Parameters
thePointthe point to be projected.
theWirethe wire. The edge is accepted as well.
theNameObject 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.
Returns
[u, PointOnEdge, EdgeInWireIndex]
u: The parameter of projection point on edge.
PointOnEdge: The projection point.
EdgeInWireIndex: The index of an edge in a wire.

Example

References geomBuilder._autoPublish(), geomBuilder.ManageTransactions(), geomBuilder.RaiseIfFailed(), and geomBuilder.TrsfOp.

def MakeMultiTranslation1D (   self,
  theObject,
  theVector,
  theStep,
  theNbTimes,
  theName = None 
)

Translate the given object along the given vector a given number times.

Parameters
theObjectThe object to be translated.
theVectorDirection of the translation. DX if None.
theStepDistance to translate on.
theNbTimesQuantity of translations to be done.
theNameObject 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.
Returns
New GEOM.GEOM_Object, containing compound of all the shapes, obtained after each translation.

Example

References geomBuilder._autoPublish(), geomBuilder.MakeMultiTranslation2D(), geomBuilder.ManageTransactions(), geomBuilder.ParseParameters(), geomBuilder.RaiseIfFailed(), and geomBuilder.TrsfOp.

def MakeMultiTranslation2D (   self,
  theObject,
  theVector1,
  theStep1,
  theNbTimes1,
  theVector2,
  theStep2,
  theNbTimes2,
  theName = None 
)

Conseqently apply two specified translations to theObject specified number of times.

Parameters
theObjectThe object to be translated.
theVector1Direction of the first translation. DX if None.
theStep1Step of the first translation.
theNbTimes1Quantity of translations to be done along theVector1.
theVector2Direction of the second translation. DY if None.
theStep2Step of the second translation.
theNbTimes2Quantity of translations to be done along theVector2.
theNameObject 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.
Returns
New GEOM.GEOM_Object, containing compound of all the shapes, obtained after each translation.

Example

References geomBuilder._autoPublish(), geomBuilder.ManageTransactions(), geomBuilder.ParseParameters(), geomBuilder.RaiseIfFailed(), and geomBuilder.TrsfOp.

def MultiRotate1DNbTimes (   self,
  theObject,
  theAxis,
  theNbTimes,
  theName = None 
)

Rotate the given object around the given axis a given number times.

Rotation angle will be 2*PI/theNbTimes.

Parameters
theObjectThe object to be rotated.
theAxisThe rotation axis. DZ if None.
theNbTimesQuantity of rotations to be done.
theNameObject 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.
Returns
New GEOM.GEOM_Object, containing compound of all the shapes, obtained after each rotation.

Example

References geomBuilder._autoPublish(), geomBuilder.ManageTransactions(), geomBuilder.ParseParameters(), geomBuilder.RaiseIfFailed(), and geomBuilder.TrsfOp.

def MultiRotate1DByStep (   self,
  theObject,
  theAxis,
  theAngleStep,
  theNbTimes,
  theName = None 
)

Rotate the given object around the given axis a given number times on the given angle.

Parameters
theObjectThe object to be rotated.
theAxisThe rotation axis. DZ if None.
theAngleStepRotation angle in radians.
theNbTimesQuantity of rotations to be done.
theNameObject 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.
Returns
New GEOM.GEOM_Object, containing compound of all the shapes, obtained after each rotation.

Example

References geomBuilder._autoPublish(), geomBuilder.ManageTransactions(), geomBuilder.ParseParameters(), geomBuilder.RaiseIfFailed(), and geomBuilder.TrsfOp.

def MultiRotate2DNbTimes (   self,
  theObject,
  theAxis,
  theNbTimes1,
  theRadialStep,
  theNbTimes2,
  theName = None 
)

Rotate the given object around the given axis a given number times and multi-translate each rotation result.

Rotation angle will be 2*PI/theNbTimes1. Translation direction passes through center of gravity of rotated shape and its projection on the rotation axis.

Parameters
theObjectThe object to be rotated.
theAxisRotation axis. DZ if None.
theNbTimes1Quantity of rotations to be done.
theRadialStepTranslation distance.
theNbTimes2Quantity of translations to be done.
theNameObject 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.
Returns
New GEOM.GEOM_Object, containing compound of all the shapes, obtained after each transformation.

Example

References geomBuilder._autoPublish(), geomBuilder.ManageTransactions(), geomBuilder.ParseParameters(), geomBuilder.RaiseIfFailed(), and geomBuilder.TrsfOp.

def MultiRotate2DByStep (   self,
  theObject,
  theAxis,
  theAngleStep,
  theNbTimes1,
  theRadialStep,
  theNbTimes2,
  theName = None 
)

Rotate the given object around the given axis on the given angle a given number times and multi-translate each rotation result.

Translation direction passes through center of gravity of rotated shape and its projection on the rotation axis.

Parameters
theObjectThe object to be rotated.
theAxisRotation axis. DZ if None.
theAngleStepRotation angle in radians.
theNbTimes1Quantity of rotations to be done.
theRadialStepTranslation distance.
theNbTimes2Quantity of translations to be done.
theNameObject 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.
Returns
New GEOM.GEOM_Object, containing compound of all the shapes, obtained after each transformation.

Example

References geomBuilder._autoPublish(), geomBuilder.ParseParameters(), geomBuilder.RaiseIfFailed(), and geomBuilder.TrsfOp.

def MakeMultiRotation1DNbTimes (   self,
  aShape,
  aDir,
  aPoint,
  aNbTimes,
  theName = None 
)

The same, as MultiRotate1DNbTimes(), but axis is given by direction and point.

Example

References geomBuilder.MakeLine(), and geomBuilder.MultiRotate1DNbTimes().

def MakeMultiRotation1DByStep (   self,
  aShape,
  aDir,
  aPoint,
  anAngle,
  aNbTimes,
  theName = None 
)

The same, as MultiRotate1DByStep(), but axis is given by direction and point.

Example

References geomBuilder.MakeLine(), and geomBuilder.MultiRotate1DByStep().

def MakeMultiRotation2DNbTimes (   self,
  aShape,
  aDir,
  aPoint,
  nbtimes1,
  aStep,
  nbtimes2,
  theName = None 
)

The same, as MultiRotate2DNbTimes(), but axis is given by direction and point.

Example

References geomBuilder.MakeLine(), and geomBuilder.MultiRotate2DNbTimes().

def MakeMultiRotation2DByStep (   self,
  aShape,
  aDir,
  aPoint,
  anAngle,
  nbtimes1,
  aStep,
  nbtimes2,
  theName = None 
)
def MakeProjectionOnCylinder (   self,
  theObject,
  theRadius,
  theStartAngle = 0.0,
  theAngleLength = -1.0,
  theAngleRotation = 0.0,
  theName = None 
)

Compute a wire or a face that represents a projection of the source shape onto cylinder.

The cylinder's coordinate system is the same as the global coordinate system.

Parameters
theObjectThe object to be projected. It can be either a planar wire or a face.
theRadiusThe radius of the cylinder.
theStartAngleThe starting angle in radians from the cylinder's X axis around Z axis. The angle from which the projection is started.
theAngleLengthThe projection length angle in radians. The angle in which to project the total length of the wire. If it is negative the projection is not scaled and natural wire length is kept for the projection.
theAngleRotationThe desired angle in radians between the tangent vector to the first curve at the first point of the theObject's projection in 2D space and U-direction of cylinder's 2D space.
theNameObject 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.
Returns
New GEOM.GEOM_Object, containing the result shape. The result represents a wire or a face that represents a projection of the source shape onto a cylinder.

Example

References geomBuilder._autoPublish(), geomBuilder.ParseParameters(), geomBuilder.RaiseIfFailed(), and geomBuilder.TrsfOp.