Rotate

Rotate icon

In: SDF function > Transform

Description

Rotate an SDF shape around one or several axes from an adjustable pivot point, in turns.
Use the Transform pivot helper of the 3D Viewer to visualize the performed rotation.

Inputs

Inputs

SDF Float
The input SDF shape.
Angle Float
The angle, in turns, at which the SDF shape is rotated.

The angle is visualized by a circle in the Transform pivot helper of the 3D Viewer. Align the camera so as to see the Axis arrow as the center of this circle to clearly see the angle of your rotation as a fraction of a turn.

Default: 0
Axis Float3
The normalized vector defining the axis around which the SDF shape is rotated.
E.g. (0, 1, 0) will rotate the SDF shape around the Y axis of its local pivot point.

The axis is visualized by an arrow in the Transform pivot helper of the 3D Viewer. The color of the arrow is mapped on the XYZ components of this vector.

Default: (0, 1, 0)
Pivot position Float3
The world space position of the local pivot of the SDF shape, where (0, 0, 0) places the pivot at the center of the SDF shape. Defines the origin of the rotation.

The pivot is visualized by the start of the arrow in the Transform pivot helper of the 3D Viewer.
P Float3
The transformed world space position. Use this input to apply additional transformations using the Offset P and Rotate P nodes.

Default: The untransformed world space position.
recommendation-more-help
dd48abc6-e399-43d2-9777-578ec70c5a23