ubsure Posted January 24, 2011 Posted January 24, 2011 Hello all, I'm looking for a way to calculate an internal point out off a selection set containing multiple plines that form together a closed contour. the contour can be all kind off shapes including a half moon shape where the centroid is outside off the contour. Goal is to make a boundary, but the lines can contain polyline splines, so joining them with pedit won't work (shape changes). Thank you all for your input. Quote
Lee Mac Posted January 24, 2011 Posted January 24, 2011 The simplest method would be to offset a closed polyline to both sides by a small distance, compare the areas and take a point on the polyline with the smaller area. However, as your polylines cannot be joined to form a single bounded region, I doubt this method would work... Quote
ubsure Posted January 24, 2011 Author Posted January 24, 2011 True, thought about this as well. Tried to make a region from the lines as well, then you don't need an internal point but can give in the selection set. Problem is the next step would be offsetting the boundary. With a region this isn't possible. Quote
BIGAL Posted January 25, 2011 Posted January 25, 2011 hatch boundary ? if you can hatch it make a boundary of the hatch then delete hatch ? Quote
ubsure Posted January 25, 2011 Author Posted January 25, 2011 thank you very much bigal This seems the way to do it in a really clean way. In the mean while I have done some experimenting and found out you can give in multiple points into 1 boundary command (see below) (command "boundary" "a" "i" "n" "" "" (getpoint) (getpoint) "") Because I got 1 clossed shape I can get any coords from the selection set calculate the direction off the line, then get points on both sides. 1 is always on the inside off the shape, the other wil only give out a warning on the command line. Thank you all very much for your help:) 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.