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

Use this forum to ask questions about how to do things in QCAD.

Moderator: andrew

Forum rules

Always indicate your operating system and QCAD version.

Attach drawing files and screenshots.

Post one question per topic.

Post Reply
slymn++
Junior Member
Posts: 21
Joined: Tue Feb 16, 2016 8:33 am

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

Post by slymn++ » Tue Jul 23, 2019 2:21 pm

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.

User avatar
andrew
Site Admin
Posts: 9037
Joined: Fri Mar 30, 2007 6:07 am

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

Post by andrew » Tue Jul 23, 2019 3:23 pm

You can create a polyline from any of these shapes and then use:
RPolyline::contains

slymn++
Junior Member
Posts: 21
Joined: Tue Feb 16, 2016 8:33 am

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

Post by slymn++ » Tue Jul 23, 2019 3:39 pm

Thanks Andrew,
I tried it

Post Reply

Return to “QCAD 'How Do I' Questions”