API Reference > Classes > Database Classes > OdBmMaterialElem Class > OdBmMaterialElem Methods > OdBmMaterialElem::setMaterial Method
OdBmMaterialElem::setMaterial Method
Syntax
C++
OdResult setMaterial(const OdBmMaterialPtr&);
Parameters 
Description 
OdBmMaterialPtr 
[in] Input pointer to a material object.
 

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

Sets the material object. The material will be copied and stored in the MaterialElem 

 

Copyright (c) 2002-2021. Open Design Alliance. All rights reserved.