Close

Relief for ODA Team in Ukraine

Learn more
ODA Drawings SDK
OdDb3dSolid::getMassProp Method
Syntax
C++
virtual OdResult getMassProp(double& volume, OdGePoint3d& centroid, double momInertia[3], double prodInertia[3], double prinMoments[3], OdGeVector3d prinAxes[3], double radiiGyration[3], OdGeExtents3d& extents) const;

Returns volume properties of the solid. 

 

Parameters
Description
volume
[out] Reference for returning the volume of the solid.
centroid
[out] Reference to an OdGePoint3d object for returning the point, representing the centroid of the solid.
momInertia
[out] Static array for returning X, Y, Z moments of inertia of the solid.
prodInertia
[out] Static array for returning X, Y, Z products of inertia of the solid.
prinMoments
[out] Static array for returning X, Y, Z principal moments of the solid.
prinAxes
[out] Static array for returning an OdGeVector3d object, determining principal axes of the solid.
radiiGyration
[out] Static array for returning X, Y, Z radii of gyration of the solid.
extents
[out] Reference to an OdGeExtents3d object for returning the bounding box of the solid.

eOk if successful or an appropriate error code in other case. All properties are evaluated in the WCS.

This method is implemented only for Spatial modeler and returns the eNotImplementedYet status for other modelers.

Copyright © 2002-2022. Open Design Alliance All rights reserved.