API Reference > OdDb Classes > OdDbSubDMesh Class > OdDbSubDMesh Methods > setCrease Method > OdDbSubDMesh::setCrease Method (double)
OdDbSubDMesh::setCrease Method (double)
Syntax
C++
OdResult setCrease(double creaseVal);
Parameters 
Description 
double creaseVal 
[in] Flag, defining when to apply the crease.  

Returns eOk if the operation completed successfully, or an appropriate error code otherwise.

Sharpens the edges of a mesh. 

 

The value of the creaseVal parameter can be one of the following:

Value 
Description 
-1 
Always apply the crease. 
Never apply the crease. 
any positive value 
Apply the crease starting from this level. 
Copyright © 2002–2021. Open Design Alliance. All rights reserved.