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... | |
def TranslateTwoPoints | ( | self, | |
theObject, | |||
thePoint1, | |||
thePoint2, | |||
theCopy = False |
|||
) |
Translate the given object along the vector, specified by its end points.
theObject | The object to be translated. |
thePoint1 | Start point of translation vector. |
thePoint2 | End point of translation vector. |
theCopy | Flag used to translate object itself or create a copy. |
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.
theObject | The object to be translated. |
thePoint1 | Start point of translation vector. |
thePoint2 | End point of translation vector. |
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. |
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.
theObject | The object to be translated. |
theDX,theDY,theDZ | Components of translation vector. |
theCopy | Flag used to translate object itself or create a copy. |
False
(default) or new GEOM.GEOM_Object, containing the translated object if theCopy flag is True
.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.
theObject | The object to be translated. |
theDX,theDY,theDZ | Components of translation vector. |
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. |
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.
theObject | The object to be translated. |
theVector | The translation vector. |
theCopy | Flag used to translate object itself or create a copy. |
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.
theObject | The object to be translated. |
theVector | The translation vector. |
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. |
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.
theObject | The object to be translated. |
theVector | The translation vector. |
theDistance | The translation distance. |
theCopy | Flag used to translate object itself or create a copy. |
False
(default) or new GEOM.GEOM_Object, containing the translated object if theCopy flag is True
.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.
theObject | The object to be translated. |
theVector | The translation vector. |
theDistance | The translation distance. |
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. |
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.
theObject | The object to be rotated. |
theAxis | Rotation axis. |
theAngle | Rotation angle in radians. |
theCopy | Flag used to rotate object itself or create a copy. |
False
(default) or new GEOM.GEOM_Object, containing the rotated object if theCopy flag is True
.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.
theObject | The object to be rotated. |
theAxis | Rotation axis. |
theAngle | Rotation angle in radians. |
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. |
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.
theObject | The object to be rotated. |
theCentPoint | central point the axis is the vector perpendicular to the plane containing the three points. |
thePoint1,thePoint2 | points in a perpendicular plane of the axis. |
theCopy | Flag used to rotate object itself or create a copy. |
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.
theObject | The object to be rotated. |
theCentPoint | central point the axis is the vector perpendicular to the plane containing the three points. |
thePoint1,thePoint2 | in a perpendicular plane of the axis. |
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. |
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.
theObject | The object to be scaled. |
thePoint | Center point for scaling. Passing None for it means scaling relatively the origin of global CS. |
theFactor | Scaling factor value. |
theCopy | Flag used to scale object itself or create a copy. |
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.
theObject | The object to be scaled. |
thePoint | Center point for scaling. Passing None for it means scaling relatively the origin of global CS. |
theFactor | Scaling factor value. |
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. |
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.
theObject | The object to be scaled. |
thePoint | Center point for scaling. Passing None for it means scaling relatively the origin of global CS. |
theFactorX,theFactorY,theFactorZ | Scaling factors along each axis. |
theCopy | Flag used to scale object itself or create a copy. |
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.
theObject | The object to be scaled. |
thePoint | Center point for scaling. Passing None for it means scaling relatively the origin of global CS. |
theFactorX,theFactorY,theFactorZ | Scaling factors along each axis. |
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. |
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.
theObject | The object to be mirrored. |
thePlane | Plane of symmetry. |
theCopy | Flag used to mirror object itself or create a copy. |
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.
theObject | The object to be mirrored. |
thePlane | Plane of symmetry. |
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. |
References geomBuilder._autoPublish(), geomBuilder.ManageTransactions(), geomBuilder.RaiseIfFailed(), and geomBuilder.TrsfOp.
def MirrorByAxis | ( | self, | |
theObject, | |||
theAxis, | |||
theCopy = False |
|||
) |
Mirror an object relatively the given axis.
theObject | The object to be mirrored. |
theAxis | Axis of symmetry. |
theCopy | Flag used to mirror object itself or create a copy. |
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.
theObject | The object to be mirrored. |
theAxis | Axis of symmetry. |
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. |
References geomBuilder._autoPublish(), geomBuilder.ManageTransactions(), geomBuilder.RaiseIfFailed(), and geomBuilder.TrsfOp.
def MirrorByPoint | ( | self, | |
theObject, | |||
thePoint, | |||
theCopy = False |
|||
) |
Mirror an object relatively the given point.
theObject | The object to be mirrored. |
thePoint | Point of symmetry. |
theCopy | Flag used to mirror object itself or create a copy. |
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.
theObject | The object to be mirrored. |
thePoint | Point of symmetry. |
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. |
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.
theObject | The object to be displaced. |
theStartLCS | Coordinate 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. |
theEndLCS | Coordinate system to perform displacement to it. |
theCopy | Flag used to displace object itself or create a copy. |
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.
theObject | The object to be displaced. |
theStartLCS | Coordinate 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. |
theEndLCS | Coordinate system to perform displacement to it. |
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. |
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.
theObject | The object to be displaced. |
thePath | Wire or Edge along that the object will be translated. |
theDistance | progress of Path (0 = start location, 1 = end of path location). |
theCopy | is to create a copy objects if true. |
theReverse | 0 - for usual direction, 1 - to reverse path direction. |
False
or new GEOM.GEOM_Object, containing the displaced shape if theCopy is True
.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.
theObject | The object to be displaced. |
thePath | Wire or Edge along that the object will be translated. |
theDistance | progress of Path (0 = start location, 1 = end of path location). |
theReverse | 0 - for usual direction, 1 - to reverse path direction. |
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. |
References geomBuilder._autoPublish(), geomBuilder.ManageTransactions(), geomBuilder.RaiseIfFailed(), and geomBuilder.TrsfOp.
def Offset | ( | self, | |
theObject, | |||
theOffset, | |||
theCopy = False |
|||
) |
Offset given shape.
theObject | The base object for the offset. |
theOffset | Offset value. |
theCopy | Flag used to offset object itself or create a copy. |
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.
theObject | The base object for the offset. |
theOffset | Offset value. |
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. |
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.
theSource | The source object for the projection. It can be a point, edge or wire. Edge and wire are acceptable if theTarget is a face. |
theTarget | The target object. It can be planar or cylindrical face, edge or wire. |
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. |
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.
thePoint | the point to be projected. |
theWire | the wire. The edge is accepted as well. |
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. |
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.
theObject | The object to be translated. |
theVector | Direction of the translation. DX if None. |
theStep | Distance to translate on. |
theNbTimes | Quantity of translations to be done. |
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. |
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.
theObject | The object to be translated. |
theVector1 | Direction of the first translation. DX if None. |
theStep1 | Step of the first translation. |
theNbTimes1 | Quantity of translations to be done along theVector1. |
theVector2 | Direction of the second translation. DY if None. |
theStep2 | Step of the second translation. |
theNbTimes2 | Quantity of translations to be done along theVector2. |
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. |
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.
theObject | The object to be rotated. |
theAxis | The rotation axis. DZ if None. |
theNbTimes | Quantity of rotations to be done. |
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. |
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.
theObject | The object to be rotated. |
theAxis | The rotation axis. DZ if None. |
theAngleStep | Rotation angle in radians. |
theNbTimes | Quantity of rotations to be done. |
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. |
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.
theObject | The object to be rotated. |
theAxis | Rotation axis. DZ if None. |
theNbTimes1 | Quantity of rotations to be done. |
theRadialStep | Translation distance. |
theNbTimes2 | Quantity of translations to be done. |
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. |
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.
theObject | The object to be rotated. |
theAxis | Rotation axis. DZ if None. |
theAngleStep | Rotation angle in radians. |
theNbTimes1 | Quantity of rotations to be done. |
theRadialStep | Translation distance. |
theNbTimes2 | Quantity of translations to be done. |
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. |
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.
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.
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.
References geomBuilder.MakeLine(), and geomBuilder.MultiRotate2DNbTimes().
def MakeMultiRotation2DByStep | ( | self, | |
aShape, | |||
aDir, | |||
aPoint, | |||
anAngle, | |||
nbtimes1, | |||
aStep, | |||
nbtimes2, | |||
theName = None |
|||
) |
The same, as MultiRotate2DByStep(), but axis is given by direction and point.
References geomBuilder.MakeLine(), geomBuilder.MakeProjectionOnCylinder(), and geomBuilder.MultiRotate2DByStep().
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.
theObject | The object to be projected. It can be either a planar wire or a face. |
theRadius | The radius of the cylinder. |
theStartAngle | The starting angle in radians from the cylinder's X axis around Z axis. The angle from which the projection is started. |
theAngleLength | The 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. |
theAngleRotation | The 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. |
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. |
References geomBuilder._autoPublish(), geomBuilder.ParseParameters(), geomBuilder.RaiseIfFailed(), and geomBuilder.TrsfOp.