API Reference > OdDb Classes > OdDb3dSolid Class > OdDb3dSolid Methods > OdDb3dSolid::getSubentMaterial Method
OdDb3dSolid::getSubentMaterial Method
Syntax
C++
virtual OdResult getSubentMaterial(const OdDbSubentId & subentId, OdDbObjectId& matId) const;
Parameters 
Description 
const OdDbSubentId & subentId 
[in] Subentity ID.  
OdDbObjectId& matId 
[out] Reference to an OdDbObjectId for returning the material object ID.
 

eOk if successful or an appropriate error code in other case.

Returns the material of the specified subentity. 

 

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