Jump to content

calculate internal point out off a selection set


Recommended Posts

Posted

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.

Posted

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...

Posted

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.

Posted

hatch boundary ? if you can hatch it make a boundary of the hatch then delete hatch ?

Posted

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:)

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...