How to plot closed polygon from set of random points with edges not intersecting?
Show older comments
I have set of random points in 2D plane, and have to make a closed polygon without any intersection between edges. There is a possibility that one or more polygons can be drawn. How do I get all those possible polygons along with their perimeter.
11 Comments
Guillaume
on 11 May 2018
Sound to me like you want the convex hull of your set of points but I don't understand why you'd have several polygons. You illustration certainly doesn't explain that.
akash sonnad
on 11 May 2018
Edited: KSSV
on 11 May 2018
akash sonnad
on 11 May 2018
KSSV
on 11 May 2018
Mostly it should..if not you can also have a look on boundary.
No, convhull does not include all the points. Matlab does not have any built-in functions for that as far as I know. Your video suggests two different methods for achieving that. You'll have to implement them yourself or see if there's something on the file exchange.
KSSV
on 11 May 2018
I have just seen your video.....I think in your case boundary will work.
akash sonnad
on 11 May 2018
akash sonnad
on 11 May 2018
Accepted Answer
More Answers (0)
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!