Page 1 of 1

Is the point in entity(polyline, rect, triangle)

Posted: Tue Jul 23, 2019 2:21 pm
by slymn++
Hello

I have point list and closed contour(rectangle, triangle, polyline)
I want to find out which point is in the closed contour
Is there any related function

Best Regards.

Re: Is the point in entity(polyline, rect, triangle)

Posted: Tue Jul 23, 2019 3:23 pm
by andrew
You can create a polyline from any of these shapes and then use:
RPolyline::contains

Re: Is the point in entity(polyline, rect, triangle)

Posted: Tue Jul 23, 2019 3:39 pm
by slymn++
Thanks Andrew,
I tried it