API Reference > OdDb Classes > OdDb3dSolid Class > OdDb3dSolid Methods > OdDb3dSolid::setSubentMaterial Method
OdDb3dSolid::setSubentMaterial Method
Syntax
C++
virtual OdResult setSubentMaterial(const OdDbSubentId & subentId, OdDbObjectId matId);
Parameters 
Description 
const OdDbSubentId & subentId 
[in] Subentity ID.  
OdDbObjectId matId 
[in] Object ID for the material.
 

eOk if successful or an appropriate error code in other case.

Sets a material for the specified subentity. 

 

To remove the currently assigned material, set the matId parameter value to NULL.

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