Hello
This is an example how to fit an ellipse to a collection of points based on the idea of @jopsa2 , and using native component: Circle Fit
ellipse fit.gh (10.5 KB)
Or like this more simple
Hello
This is an example how to fit an ellipse to a collection of points based on the idea of @jopsa2 , and using native component: Circle Fit
ellipse fit.gh (10.5 KB)
Or like this more simple
Interesting! First method for best-fit ellipse, and second method if you know the ratio between major and minor axis.
For the first, I thought it would be cool to sort the output, to get the best fitting ellipses at the top of the list (see image)
I just wrote a python code for it:
I attached the files. it could be a bit slow.
example.3dm (24.5 KB)
example_gh_elliplse_fit.gh (11.8 KB)
Grasshopper_ellipse_fit_code.py (14.3 KB)