API Reference > OdDb Classes > OdDbSubDMesh Class > OdDbSubDMesh Methods > OdDbSubDMesh::setSubentMaterialMapper Method
OdDbSubDMesh::setSubentMaterialMapper Method
Syntax
C++
OdResult setSubentMaterialMapper(const OdDbSubentId& id, const OdGiMapper& mapper);
Parameters 
Description 
const OdDbSubentId& id 
[in] ID of the subentity.  
const OdGiMapper& mapper 
[in] Material mapper to be set to the subentity.  

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

Sets the material mapper of a subentity. 

 

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