API Reference > OdDb Classes > OdDbSubDMesh Class > OdDbSubDMesh Methods > OdDbSubDMesh::getNormalArray Method
OdDbSubDMesh::getNormalArray Method
Syntax
C++
OdResult getNormalArray(OdGeVector3dArray& normalArray) const;
Parameters 
Description 
OdGeVector3dArray& normalArray 
[out] Receives an array of normals.  

A value of the OdResult type containing the result of the method execution.

Calculates normals for all vertices of the current SubDMash entity. 

 

The normal for a vertex is calculated as the average of all normals for the faces that include the vertex. This method assumes that the smoothness level is zero.

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