Close

Relief for ODA Team in Ukraine

Learn more
ODA Drawings SDK
OdDbMPolygon::isPointInsideMPolygon Method
Syntax
C++
virtual int isPointInsideMPolygon(const OdGePoint3d& worldPt, OdGeIntArray& loopsArray, double tol = OdDbMPolygonCrossingFuzz) const;

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 the innermost loop containing the point and adds its index to the loopsArray before returning. 

 

Parameters
Description
worldPt
[in] Point in WCS.
loopsArray
[out] Boundary indices array.
tol
[in] Measurement accuracy tolerance.

The function returns loopsArray.size().

Copyright © 2002-2022. Open Design Alliance All rights reserved.