formZ SDK | 5.0 API Reference | Project | Modeling | Objects | Analysis
Description
Calculates the principle axes of rotation of an object.
The object passed in must be a solid.
The returned axes are normalized vectors from the center
of gravity of the object.
Plugin Prototype
fzrt_error_td fz_objt_alys_get_objt_principle_axes(
fzrt_int | windex, |
obj, | |
ax1, | |
ax2, | |
ax3 ) |
Parameters
windex [Input]
project window index
obj [Input]
object
ax1 [Result]
normalized vector axis 1
ax2 [Result]
normalized vector axis 2
ax3 [Result]
normalized vector axis 3
Returns
Error codes
MODEL_ERR_INVALID_TOPO - object isn't solid
Availability
5.0.0.0
Example Files
See Also
fz_objt_alys_get_objt_volume,, fz_objt_alys_get_objt_area, fz_objt_alys_get_objt_moments, fz_objt_alys_get_objt_bbox,, , fz_objt_alys_set_objt_origin,, fz_objt_alys_get_objt_topo_type,, ,
Function Set
Defined in