Module: Align Principal Axes ()

Description:

This module computes a rigid transformation for a triangulated surface, such that its principal axes are aligned to a reference coordinate system. This can either be the standard basis in 3D or the principal axes of a reference triangulated surface.

Connections:

Model [required]
Model surface that will be transformed.

Reference [optional]
Reference surface, whose principal axes will serve as a reference coordinate system.

Ports:

Options

This port is only visible when a reference surface is connected. For each possible solution (see explanation below at Port Action), the root mean square distance is computed when the option 'Optimize distance' is chosen. The final transformation will be the one yielding the minimum value.

Axis1

If no reference surface is connected, the principal axes with the largest moment of inertia will be aligned to the axis specified at this port.

Axis2

If no reference surface is connected, the principal axes with the second largest moment of inertia will be aligned to the axis specified at this port.

Rotation

The Apply button starts the alignment. Since the principal axes are only computed up to their orientation, the model surface can subsequently be rotated 180 degree around each of its principal axes by pressing one of the Moment buttons. The number corresponds to the first, second, or third largest moment respectively.

Commands:

getRefSystem
Prints the center of gravity, the axes of inertia, and the moments of inertia in the console.