How to fit a plane from points using least square error method.

Hi All,

I know there is an API GProp_PEquation, it can fit point, line or plane by a given tolerance. However, if I set a large tolerance, GProp_PEquation may return a point or line instead of the plane.
Any suggestion is welcome. Thanks in advanced.

-Ding

Francois Lauzon's picture

Hello Cauchy,
I use GeomPlate_BuildAveragePlane when I need a plane through a set of points.

Good Luck,
Francois.

Cauchy Ding's picture

Hi Francois,

Thank you very much for your suggestion. It works well now.

-Ding