geom/doc/salome/gui/GEOM/input/multi_rotation_operation.doc

70 lines
3.1 KiB
Plaintext
Raw Normal View History

/*!
\page multi_rotation_operation_page Multi Rotation
\n To produce a <b>Multi Rotation</b> in the <b>Main Menu</b> select
<b>Operations - > Transformation - > Multi Rotation</b>
2013-02-12 17:35:16 +06:00
\n This operation creates a compound of several shapes rotated in one
or two dimensions basing on the initial shape.
\n The \b Result will be one \b GEOM_Object (compound).
\n To produce a <b>Simple Multi Rotation</b> (in one dimension) you
2013-02-12 17:35:16 +06:00
need to define a \b Shape to be rotated, an \b Axis of rotation (DZ by
default), Angle of rotation (optionally) and a <b>Number of Times</b>
the shape must be rotated. If <b>Angular step</b> is not defined
(checkbox is not checked), it will be 2 * \a PI / \a NbTimes. Number
of shape's copies in the resulting compound will be equal to
\a NbTimes (if \a NbTimes = 1, the result will contain only the
initial non-transformed shape).
\n <b>TUI Commands:</b>
\n <em>geompy.MultiRotate1DNbTimes(Shape, Axis, NbTimes)</em>
\n <em>geompy.MultiRotate1DByStep(Shape, Axis, AngleStep, NbTimes)</em>
\b <b>NB!</b> There is another way to execute a Multi-rotation
operation, which is currently accessible only via TUI commands:
2013-02-12 17:35:16 +06:00
<em>geompy.MakeMultiRotation1DNbTimes(Shape, Dir, Point, NbTimes)</em>,
<em>geompy.MakeMultiRotation1DByStep(Shape, Dir, Point, AngleStep, NbTimes)</em>,
which works in the same way, but the Axis is defined by direction and point.
\image html neo-mrot1.png
2009-02-13 17:16:39 +05:00
\image html multi_rotation1d1.png "The initial object"
2009-02-13 17:16:39 +05:00
\image html multi_rotation1d2.png "The result of a simple multi-rotation"
\n <b>Double Multi Rotation</b> (in two dimensions) rotates the given
2013-02-12 17:35:16 +06:00
\b Object around the given \b Axis (DZ by default) on the given
\b Angle (optional) a given <b>Number of Times</b> and
multi-translates each rotation result.
If <b>Angular step</b> is not defined (checkbox is not checked), it
will be 2 * \a PI / \a NbTimes.
Translation direction passes through the center of gravity of the
initial shape and its projection on the rotation axis. Number of
shape's copies in the resulting compound will be equal to \a NbTimes1 x \a NbTimes2
(if both \a NbTimes1 and \a NbTimes2 are equal to 1, the result will contain
2012-08-09 13:58:02 +06:00
only the initial non-transformed shape).
\b Reverse checkbox allows to set the direction of rotation.
2013-02-12 17:35:16 +06:00
\n <b>TUI Commands:</b>
\n <em>geompy.MultiRotate2DNbTimes(Shape, Axis, NbTimes1, RadialStep, NbTimes2)</em>
\n <em>geompy.MultiRotate2DByStep(Shape, Axis, AngleStep, NbTimes1, RadialStep, NbTimes2)</em>
<b>NB!</b> There is another way to execute a Double Multi-rotation
operation, which is currently accessible only via TUI commands:
2013-02-12 17:35:16 +06:00
<em>geompy.MakeMultiRotation2DNbTimes(Shape, Dir, Point, NbTimes1, RadialStep, NbTimes2)</em>,
<em>geompy.MakeMultiRotation2DByStep(Shape, Dir, Point, AngleStep, NbTimes1, RadialStep, NbTimes2)</em>,
which works in the same way, but the Axis is defined by direction and point.
\image html neo-mrot2.png
2009-02-13 17:16:39 +05:00
\image html multi_rotation2d1.png "The initial object"
2009-02-13 17:16:39 +05:00
\image html multi_rotation2d2.png "The result of a double multi-rotation"
Our <b>TUI Scripts</b> provide you with useful examples of the use of
\ref tui_multi_rotation "Transformation Operations".
*/