API Reference > OdDb Classes > OdDbSubDMesh Class > OdDbSubDMesh Methods > OdDbSubDMesh::setSubentMaterial Method
OdDbSubDMesh::setSubentMaterial Method
Syntax
C++
OdResult setSubentMaterial(const OdDbSubentId& id, const OdDbObjectId& material);
Parameters 
Description 
const OdDbSubentId& id 
[in] Id of a subentity.  
const OdDbObjectId& material 
[out] Material to be set to a subentity.  

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

Sets the material of a given subentity. 

 

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