API Reference > OdDb Classes > OdDbSubDMesh Class > OdDbSubDMesh Methods > OdDbSubDMesh::getSubentMaterial Method
OdDbSubDMesh::getSubentMaterial Method
Syntax
C++
OdResult getSubentMaterial(const OdDbSubentId& id, OdDbObjectId& material) const;
Parameters 
Description 
const OdDbSubentId& id 
[in] ID of the subentity.  
OdDbObjectId& material 
[out] Receives the material of the subentity.  

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

Retrieves the material of a given subentity. 

 

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