Minimum enclosing ellipse from random given points?

so there’s a random multiple points, and I wish to create minimum enclosing ellipse from these points like this pic.


I have been search on Google and find some clue:
https://rdrr.io/cran/shotGroups/man/getMinEllipse.html

but sadly I have no any exprience of Matlab and C++, now I am trying to figure out every words in these code, and try to move it in grasshopper.
Maybe someone have already had this issue?

Bounding-Ellipse
Bounding Ellipse.gh (3.3 KB)
Source

5 Likes

wow Thank you so much, it really worked!

With many points the algorithm is less fast, so you could use a Convex Hull to just use the points that are on the convex hull.


4 Likes