API Reference > Classes > Database Classes > OdBmElement Class > OdBmElement Methods > OdBmElement::getMaterialVolume Method
OdBmElement::getMaterialVolume Method
Syntax
C++
virtual OdResult getMaterialVolume(double& value, const OdBmObjectId& materialId, bool useAsPaintMaterial) const;
Parameters 
Description 
double& value 
[out] the volume of the material for this element as double. Returns 0.0 if the given material is not a part of this element.  
const OdBmObjectId& materialId 
[in] The material id.  
bool useAsPaintMaterial 
[in] This material is considered as paint or not. If true, the area returned as calculated from paint applied to the element. If false, the area is calculated from the element geometry and layers.  

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

Returns the volume of the material with the specified id. 

 

Copyright (c) 2002-2021. Open Design Alliance. All rights reserved.