API Reference > OdDb Classes > OdDbSubDMesh Class > OdDbSubDMesh Methods > setCrease Method > OdDbSubDMesh::setCrease Method (OdDbFullSubentPathArray&, double)
OdDbSubDMesh::setCrease Method (OdDbFullSubentPathArray&, double)
Syntax
C++
OdResult setCrease(const OdDbFullSubentPathArray& subentPaths, double creaseVal);
Parameters 
Description 
const OdDbFullSubentPathArray& subentPaths 
[in] Array of subentities, to which the crease will be applied.  
double creaseVal 
[in] Flag, defining when to apply the crease.  

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

Sharpens faces, edges, vertices 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.