API Reference > Functions > geCalculateNormal Function
geCalculateNormal Function
Syntax
C++
GE_TOOLKIT_EXPORT OdGeError geCalculateNormal(const OdGePoint3dArray& points, OdGeVector3d * pNormal, const OdGeTol& tol = OdGeContext::gTol);

GeGbl.h

Parameters 
Description 
const OdGePoint3dArray& points 
[in] Array of 3D points.  
OdGeVector3d * pNormal 
[out] Receives the normal to the calculated plane.  
const OdGeTol& tol = OdGeContext::gTol 
[in] Geometric tolerance. 
numPoints 
[in] Number of points.  

Returns the normal to the plane defined by the specified points. 

 

Possible return values are as follows: 

untitled table kOk kNonCoplanarGeometry kDegenerateGeometry kSingularPoint 

Corresponding C++ library: TD_Ge

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