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

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

Determines whether the ModelerGeometry object is a planar surface. 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–2021. Open Design Alliance. All rights reserved.