API Reference > OdDb Classes > OdDbMPolygon Class > OdDbMPolygon Methods > OdDbMPolygon::isPointInsideMPolygon Method
OdDbMPolygon::isPointInsideMPolygon Method
Syntax
C++
virtual int isPointInsideMPolygon(const OdGePoint3d& worldPt, OdGeIntArray& loopsArray, double tol = OdDbMPolygonCrossingFuzz) const;

The function returns loopsArray.size().

The function projects worldPt to the polygon plane, then if the point is on some boundary, indices of these boundaries are added to the loopsArray and the function returns, otherwise it finds innermost loop containing the point and adds its index to the loopsArray before returning. 

 

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