API Reference > OdDb Classes > OdDbSurface Class > OdDbSurface Methods > OdDbSurface::setSubentMaterial Method
OdDbSurface::setSubentMaterial Method
Syntax
C++
virtual OdResult setSubentMaterial(const OdDbSubentId& subentId, const OdDbObjectId& matId);
Parameters 
Description 
const OdDbSubentId& subentId 
[in] ID of the subentity.  
const OdDbObjectId& matId 
[in] Material to be set to the subentity.
 

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.