Close

Relief for ODA Team in Ukraine

Learn more
ODA Kernel SDK
geSolidSignedVolume Function
Syntax
C++
GE_TOOLKIT_EXPORT OdGeError geSolidSignedVolume(const OdGePoint3dArray& points, double& volume, const OdGePoint3d* basePoint);

Calculates signed volume of a triangulated solid. 

 

Parameters
Description
points
[in] Array of 3D points (in order of the triangles they form).
volume
[out] Receives the volume value.
basePoint
[in] Point to replace (0,0,0) for calculation purposes.

Array of points should be divided by 3 without remainder. Negative sign of volume means that triangles in the solid are ordered clockwise. 

Corresponding C++ library: TD_Ge

File: GeGbl.h 

Module: API Reference 

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