API Reference > OdDb Classes > OdDbSubDMesh Class > OdDbSubDMesh Methods > OdDbSubDMesh::computeVolume Method
OdDbSubDMesh::computeVolume Method
Syntax
C++
OdResult computeVolume(double & retVolume) const;
Parameters 
Description 
double & retVolume 
[out] Receives the volume of the mesh.  

Returns eOk if the operation completed successfully, or an appropriate error code otherwise.

Calculates the current volume of a watertight mesh. 

 

Copyright © 2002–2021. Open Design Alliance. All rights reserved.