![](/profiles/wavemetrics/themes/wavemetrics/logo.png)
Loci of points inside or outside a 2D convex hull.
![](/sites/www.wavemetrics.com/files/styles/thumbnail/public/default_images/Artboard%201_1.png)
lfh_1
Mon, 01/22/2024 - 10:07 am
Seeking suggestions in determining whether points in the vicinity of a 2D convex hull are inside or outside. Developed a procedure to triangulate a given point with 2 adjacent vertices of the hull, and computing the area of the hull and the sum of all triangle areas made between given point and each adjacent pair of vertices. For points inside the hull the sum of triangle areas should be equal to the hull area. If outside, the sum of triangle areas should be greater than the hull area. Igor is not computing areas correctly via polygonarea function.
Suggestions welcome.
If you don't need the areas, and you're just trying to figure out inside/outside, then perhaps you could use either FindPointsInPoly or PolygonOp PointInPoly keyword.
January 22, 2024 at 10:44 am - Permalink