Approximation 3D Approximation 3D Least squares fit of ellipsoid. MgcOrthogonalLineFit uses distances orthgonal to the proposed line.
Special case applies to fitting points by sphere.
MgcAppr3DQuadraticFit.h , MgcVector3.cpp , MgcVector3.h , MgcVector3.inl , MagicFMLibType.h , MgcEigen.cpp , MgcEigen.h , MgcEigen.inl Least squares fit of points by sphere. For points on a small portion of a spherical surface, the initial guess for sphere center is not a good one. The algorithm is to find the elliptical cylinder of best fit and estimate the helix parameters.