5 The feature **Rotation** makes rotation of a selected shape.
7 To create Rotation in the active part:
9 #. select in the Main Menu *Part - > Rotation* item or
10 #. click **Rotation** button in the toolbar
12 .. image:: images/rotation.png
18 Two rotation algorithms are:
20 .. image:: images/rotation_axis_32x32.png
24 .. image:: images/rotation_3pt_32x32.png
26 by center and 2 points
28 Rotation by axis and angle
29 --------------------------
31 .. image:: images/Rotation1.png
35 Rotation by axis and angle property panel
39 - **Main objects** panel contains shapes to be rotated. Shapes are selected in 3D OCC viewer or object browser;
40 - **Axis** defines the axis of rotation. Vector is edge, axis selected in 3D OCC viewer or object browser;
41 - **Angle** defines the angle by which the object is rotated.
43 **TUI Command**: *model.addRotation(Part_doc, [shape], axis, angle)*
45 **Arguments**: part + list of shapes in format *model.selection(TYPE, shape)* + axis in format *model.selection(TYPE, shape)*+ real (angle value).
50 Result of operation is rotated initial shape.
52 .. image:: images/rotation_axis.png
56 Rotation by axis and angle
58 **See Also** a sample TUI Script of a :ref:`tui_rotation_axis` operation.
60 Rotation by center and points
61 -----------------------------
63 .. image:: images/Rotation2.png
67 Rotation by center and 2 points property panel
71 - **Main objects** panel contains shapes to be rotated. Shapes are selected in 3D OCC viewer or object browser;
72 - **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 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**.
74 **TUI Command**: *model.addRotation(Part_doc, [shape], point1, point2, point3)*
76 **Arguments**: part + list of shapes in format *model.selection(TYPE, shape)* + 3 points in format *model.selection(TYPE, shape)*.
81 Result of operation is rotated initial shape.
83 .. image:: images/rotation_3points.png
87 Rotation by center and 2 points
89 **See Also** a sample TUI Script of a :ref:`tui_rotation_3points` operation.