Closed pawelbaran closed 7 months ago
I have also had issues with this method for Point
s that are co-planar. I have uploaded a script here: #3261-Coplanar and Noncolinear
All cases are non colinear, and cover the following cases:
Line
;Line
that is vertical;Line
;Line
.I think the issue is that the method covers complex 3D cases (i.e. non coplanar) but is not suited to simpler cases (e.g. Cases 1-2). This is because the coefficients become zero when they are coplanar.
Perhaps we need to revisit the method used Regressions Et Trajectoires 3D or use a simpler form of regression for co-planar and colinear cases where the problem is ultimately much similar.
One discussion about 3D line fitting without matrix solving is found here (though it is iterative, so would require some balancing and testing against other methods): 3D Regression Line Fitting
Description:
Numerical glitch, when the input set of points in
FitLine
method is perfectly collinear, the method returns zero length line. Can easily be tested with points(1,0,0)
,(2,0,0)
and(3,0,0)
.