formZ SDK | 5.0 API Reference | Project | Modeling | Objects | Analysis

fz_objt_alys_get_objt_moments

Description

Calculates the moments of inertia of an object. The object passed in must be a solid.

Plugin Prototype

fzrt_error_td fz_objt_alys_get_objt_moments(

fzrt_int

windex,

fz_objt_ptr

obj,

fz_xyz_td *

moments_world,

fz_xyz_td *

moments_paxes )

Parameters

windex [Input]

project window index

obj [Input]

object (must be solid)

moments_world [Result, Optional]

moments of inertia about the world axes

moments_paxes [Result, Optional]

moments of inertia about the principle axes of rotation

Returns

Error codes
MODEL_ERR_INVALID_TOPO - object isn't solid

Availability

5.0.0.0

Example Files

util_objt_alys_objt.fsl

See Also

fz_objt_alys_get_objt_volume,, fz_objt_alys_get_objt_area, , fz_objt_alys_get_objt_bbox,, , fz_objt_alys_set_objt_origin,, fz_objt_alys_get_objt_topo_type,, ,

Function Set

fz_model_fset


Defined in

fz_objt_alys_api.h