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 a subentity.  
OdDbObjectId& material 
[out] Material of a subentity.  

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

Retrieves the material of a given subentity. 

 

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