6 **Rotation** feature makes rotation of a selected shape.
8 To create a Rotation in the active part:
10 #. select in the Main Menu *Part - > Rotation* item or
11 #. click **Rotation** button in the toolbar
13 .. image:: images/rotation.png
19 Two rotation algorithms are:
21 .. image:: images/rotation_axis_32x32.png
25 .. image:: images/rotation_3pt_32x32.png
27 by center and 2 points
29 Rotation by axis and angle
30 --------------------------
32 .. image:: images/Rotation1.png
36 Rotation by axis and angle property panel
40 - **Main objects** panel contains shapes to be rotated. Shapes are selected in 3D OCC viewer or object browser;
41 - **Axis** defines the axis of rotation. The vector is an edge or axis selected in 3D OCC viewer or object browser;
42 - **Angle** defines the angle by which the object is rotated.
44 **TUI Command**: *model.addRotation(Part_doc, [shape], axis, angle)*
46 **Arguments**: part + list of shapes in format *model.selection(TYPE, shape)* + axis in format *model.selection(TYPE, shape)*+ real (angle value).
51 Result of operation is a rotated initial shape.
53 .. image:: images/rotation_axis.png
57 Rotation by axis and angle
59 **See Also** a sample TUI Script of :ref:`tui_rotation_axis` operation.
61 Rotation by center and points
62 -----------------------------
64 .. image:: images/Rotation2.png
68 Rotation by center and 2 points property panel
72 - **Main objects** panel contains shapes to be rotated. Shapes are selected in 3D OCC viewer or object browser;
73 - **Center point**, **Start point**, **End point** define 3 points or vertices selected in 3D OCC viewer or object browser. Rotation axis will pass through the **Center point** and will be orthogonal to a plane defined by three points. Rotation Angle is the angle between two vectors directed from the **Center point** to **Start point** and **End point**.
75 **TUI Command**: *model.addRotation(Part_doc, [shape], point1, point2, point3)*
77 **Arguments**: part + list of shapes in format *model.selection(TYPE, shape)* + 3 points in format *model.selection(TYPE, shape)*.
82 Result of operation is a rotated initial shape.
84 .. image:: images/rotation_3points.png
88 Rotation by center and 2 points
90 **See Also** a sample TUI Script of :ref:`tui_rotation_3points` operation.