Skip to content

(transform 'rotation. . . )

Description

Transform a mesh by rotation.

Syntax

(Transform 'rotation mesh rotation-axis orig angle)

Parameters

mesh The mesh to be transformed by rotation.
rotation-axis Axis of rotation. For instance the x-axis can be given by the vector (vector 1 0 0).
orig Origin of the rotation. The origine (x=0, y=0, z=0) is specified by (vector 0 0 0).
angle Angle of rotation in degrees.

Example

(transform 'rotation my-mesh (vector 0 1 0) (vector 0 0 0) 30)

See also

transform 'translation, make-mesh, transform, view.