API Reference > Functions > geCalculatePlane Function
geCalculatePlane Function
Syntax
C++
GE_TOOLKIT_EXPORT OdGeError geCalculatePlane(const OdGePoint3dArray& points, OdGePlane& plane, const OdGeTol& tol = OdGeContext::gTol, bool validateCoplanar = true);

GeGbl.h

Parameters 
Description 
const OdGePoint3dArray& points 
[in] Array of 3D points.  
OdGePlane& plane 
[out] Receives the calculated plane.  
const OdGeTol& tol = OdGeContext::gTol 
[in] Geometric tolerance.  
bool validateCoplanar = true 
[in] Check whether curves/points are coplanar (set false only if curves/points are complanar). 
curves 
[in] Array of 3D curves.  
numPoints 
[in] Number of points.  
numCurves 
[in] Number of curves.  

Returns the plane defined by the specified points. 

 

Supported curves are OdGeCircArc3d, OdGeEllipArc3d, OdGeNurbCurve3d, and OdGeLineSeg3d. 

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.