How do I get the convex hull of a set of neighboring points?

1 view (last 30 days)
I used the delaunayTriangulation function then extracted a set of neighboring points called 'neighbors'. Now I want to find the convex hull of those points, k=convexhull(neighbors) doesn't work neither does k=convexhull(DT(neighbors)).

Answers (1)

Walter Roberson
Walter Roberson on 16 May 2015
How did you extract the neighbors? Is it a list of vertexIDs such as from
vertexId = nearestNeighbor(DT, 211.6, -48.15);
If so then convexhell(DT.Points(neighbors,:))

Categories

Find more on Bounding Regions 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!