giskumar Posted May 17, 2011 Posted May 17, 2011 Hi all, Is there a way to find which points creates a closed polygon among a set of points. I have a list of points, Using that points i want to create a closed polygon. here no need to use all points. Need to use only those points which will creates a closed polygon. for ex: the following points will create a self inspecting polyline X= 1.0715 Y= 2.2652 X= 1.0547 Y= 3.5137 X= 1.0293 Y= 5.5300 X= 2.5485 Y= 5.8253 X= 3.1308 Y= 4.3405 X= 0.1263 Y= 3.8849 From this i am excepting the following result, which is a closed part in the self intersecting polyline. ((1.04825 4.02473)(1.02935 5.52999)(2.54849 5.82526)(3.13082 4.34049)) Thanks, Kumar. Quote
Lee Mac Posted May 17, 2011 Posted May 17, 2011 Using that points i want to create a closed polygon.here no need to use all points. Need to use only those points which will creates a closed polygon. Any three non-collinear points will form a closed polygon (triangle). Quote
giskumar Posted May 17, 2011 Author Posted May 17, 2011 I think my explanation is not clear. Please refer the snap shot. i have self intersected poly line. from that i want extract vertices for only closed part (which is marked with red circle). any ideas to this. Thanks, Kumar. Quote
Lee Mac Posted May 17, 2011 Posted May 17, 2011 I don't believe that could be determined from just the points, since, as I stated, any combination of three points would form the closed area. Quote
irneb Posted May 17, 2011 Posted May 17, 2011 Why not just use the Boundary command to generate a new polyline inside the enclosure? Quote
BlackBox Posted May 17, 2011 Posted May 17, 2011 Why not just use the Boundary command to generate a new polyline inside the enclosure? ... That's what I'd do. Quote
giskumar Posted May 18, 2011 Author Posted May 18, 2011 Thanks a lot. I am new to autocad and not aware of boundary command. This works great for me. Quote
irneb Posted May 18, 2011 Posted May 18, 2011 Don't worry! There's hundreds of commands like these where I've found people using ACad for years don't know about them. As an example: http://forums.augi.com/showthread.php?t=74304 Quote
SLW210 Posted May 18, 2011 Posted May 18, 2011 OOPS ................ I haven't used that in a decade. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.