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] Array of normals. 

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

Calculates normals for all vertices of 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–2020. Open Design Alliance. All rights reserved.