polylines ???

polylines ???

Anonymous
Not applicable
213 Views
2 Replies
Message 1 of 3

polylines ???

Anonymous
Not applicable
hi,
how can i check if an object/entity is inside/outside a closed polyline ?

Thanks in advance

Regards,
TI
0 Likes
214 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
Hi, a few days ago, I had the same problem, but instead an oject I need to know if a point is inside/outside a polygon.
They answer me in this discussion group, maybe you can apply the same solution with the insertion point of the object or some think like that.

Consider a polygon made up of N vertices (xi,yi) where i ranges from 0 to N-1. The last vertex (xN,yN) is assumed to be the same as the first vertex (x0,y0), that is, the polygon is closed. To determine the status of a point (xp,yp) consider a horizontal ray emanating from (xp,yp) and to the right. If the number of times this ray intersects the line segments making up the polygon is even then the point is outside the polygon. Whereas if the number of intersections is odd then the point (xp,yp) lies inside the polygon. good luck
villaco
0 Likes
Message 3 of 3

Anonymous
Not applicable
Hi,
I just want to know, did you used the above concept in VBA. If yes please give me some idea to work with it.
Thanks
mniaz
0 Likes