Know if a point is inside a closed Polyline

Discuss and ask questions about CAD VCL (Delphi and C++ Builder).

Moderators: SDS, support, admin

Post Reply
fabzouni
Posts: 10
Joined: 15 May 2006, 14:29
Location: France

Know if a point is inside a closed Polyline

Post by fabzouni » 04 May 2007, 11:18

Hi,

My question is :
Is it possible to know if a point is contained into a closed polyline (TsgDxgPolyline)?
In my case, I already know which polyline (TsgDxgPolyline) and the coordinates of the point that I need to test.

thanks in advance.

Fabzouni

support
Posts: 3272
Joined: 30 Mar 2005, 11:36
Contact:

Post by support » 04 May 2007, 14:33

Hello!

Polyline (TsgDXFPolyline) contains property Box, which defines bounding 3D rectangle. It is necessary to check whether point's coordinates are within this Box.

Sergey.

Please post questions to the forum or write to support@cadsofttools.com

Post Reply