API Reference > OdDb Classes > OdDbNurbSurface Class > OdDbNurbSurface Methods > OdDbNurbSurface::isPlanar Method
OdDbNurbSurface::isPlanar Method
Syntax
C++
OdResult isPlanar(bool& bIsPlanar, OdGePoint3d& ptOnSurface, OdGeVector3d& normal) const;
Parameters 
Description 
bool& bIsPlanar 
[out] A passed-in parameter for returning the indicator of whether the surface is planar.  
OdGePoint3d& ptOnSurface 
[out] A passed-in parameter for returning the point on the surface (if the surface is planar).  
OdGeVector3d& normal 
[out] A passed-in parameter for returning the plane normal (if the surface is planar).
 

Returns eOk if successful. If the surface doesn't contain any NURBS information, returns eFail.

Determines whether the surface is planar. If the surface is planar, also returns the plane information and normal. If the surface is planar, the method returns true via the bIsPlanar parameter, otherwise the method returns false. 

 

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