Tell me more ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

Suppose I have n ordered points. I would like to find a simple region that contains all the points and is close to the smallest region that contains the points except it is smooth and has some "padding"(as if the points were disks with some radius).

One way to to think about it is if the points were fixed "marbles" and one were to use shrink wrap around them all. It would sort of be the type of region I'm looking for(although I sort of want it to be "locally" convex).

Another way to think about it is a sort of concave hull but with some control parameter that changes how convex it is locally. Take two disks A and B some distance apart. The convexity parameter would control how much the region "dipped" in the middle between the points. On one hand it might look like an ellipse and on the other it might look like a figure 8.

The ability to control "how much" is what I'm looking for

I would then like to have a linear map from the circle(or convex hull) to this curve so I can "morph" the circle into this region.

For example, with such an algorithm I would create a slider and on one end it will show the convex hull or circle and as the slider moves to the other side the region starts to "shrink" around the points reducing the area but always containing the "disks" and staying rather smooth and simple.

Since the convex hull should contain this "minimal" region I'm looking for it should be easy to morph between them with just linear interpolation and still have a valid region(not minimal but smooth and containing the disks).

share|improve this question
Someone found it means business: concavehull.com/home.php?main_menu=1 – belisarius Apr 22 '12 at 22:10
1  
Also, although you are asking for a Mma solution, your problem is more algorithm than language related. Perhaps it is better to migrate this one to the main site where there are many algorithm savvy people waiting for challenges. – belisarius Apr 22 '12 at 22:32
@belisarius What do you mean the "main site"? – Uiy Apr 23 '12 at 0:01
Alpha shapes‌​. Open source code: cran.r-project.org/web/packages/alphahull/vignettes/… – whuber Apr 23 '12 at 1:47
@Uiy main site: stackoverflow.com – belisarius Apr 23 '12 at 2:28

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.