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.
 

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

Sets a material for the specified subentity. 

 

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

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