API Reference > OdDb Classes > OdDbSubDMesh Class > OdDbSubDMesh Methods > OdDbSubDMesh::setSubDMesh Method
OdDbSubDMesh::setSubDMesh Method
Syntax
C++
OdResult setSubDMesh(const OdGePoint3dArray& vertexArray, const OdInt32Array& faceArray, OdInt32 subDLevel);
Parameters 
Description 
const OdGePoint3dArray& vertexArray 
[in] Array of vertices.  
const OdInt32Array& faceArray 
[in] Array of integers, describing faces.  
OdInt32 subDLevel 
[in] Level of smoothness.  

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

Creates a mesh using input arrays of vertices and faces. 

 

Face array is arranged using the following pattern: the first number is the number a vertices a face has, the following numbers are indices of vertices, that form a face.

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