Fit an Ellipse to a collection of points

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

2 Likes

Ghpy component

1 Like

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)

1 Like