How to find if a polyline is inside another polyline?

How to find if a polyline is inside another polyline?

Anonymous
Not applicable
685 Views
1 Reply
Message 1 of 2

How to find if a polyline is inside another polyline?

Anonymous
Not applicable

I want check if a polyline is inside another polyline or not?

I tried to google it but no luck how to do it?

Consider a simple case where one rectangle is inside another rectangle.

0 Likes
686 Views
1 Reply
  • VBA
Reply (1)
Message 2 of 2

MakCADD
Advocate
Advocate

Draw a ray starting from a point and intersecting the poly line

then if the number intersections will be odd then the object is inside the polyline, 

and if it is even numbers then the point is outside the polyline.  choose any vertex as the starting point

then if both the poly lines does not intersect with each other then you can say it is inside the polyline

MakCADD_1-1636195482693.png

 

 

0 Likes