Syntax
- r(xAngle, yAngle, zAngle)
- r(center, xAngle, yAngle, zAngle)
Parameters
- xAngle—floatAngle in degrees to rotate about x- axis.
- yAngle—floatAngle in degrees to rotate about y- axis.
- zAngle—floatAngle in degrees to rotate about each z- axis.
- center—selector{ scopeOrgin | scopeCenter }—The rotation center. scopeOrgin is the default. (used if no center selector is given).
Description
The r operation rotates the scope of the current shape around the pivot-axes in xyz order. The center of rotation is either the scopeOrigin (scope.t) of the current shape or the scopeCenter of the current shape.
Note:
r(x,y,z) is the same as rotate(rel,pivot,x,y,z)
Related
Examples
Rotation centers
In this example, a mass model is split in vertical direction and the slices are rotated around the scope.t. Each slice's scope is shown, note how the y-axes denote an axis of symmetry.
| |
The same example as above, but this time the rotations are around the scope center.
|