Fit an Ellipse to a collection of points

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 (10.5 KB)

Or like this more simple


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