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

eOk if successful or an appropriate error code otherwise.

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.