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 the subentity.  
const OdDbObjectId& material 
[in] Material to be set to the subentity.  

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

Sets the material of a given subentity. 

 

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