Best fit plane by minimizing orthogonal distances
问题 I have a set of points (in the form x1,y1,z1 ... xn,yn,zn ) obtained from a surface mesh. I want to find the best-fit 3D plane to these points by minimizing orthogonal distances. x,y,z coordinates are independent, that is I want to obtain the coefficient A, B, C, D for the plane equation Ax + By + Cz + D = 0. What would be the algorithm to obtain A, B, C, D? Note: in a previous post it was discussed the best-fit plane in a least squares sense, by considering the z coordinate a linear function