BHoM / BHoM_Engine

Internal manipulation of the BHoM
GNU Lesser General Public License v3.0
26 stars 13 forks source link

Geometry_Engine: Switch IsCoplanar from numerical solution to fitting plane and checking distance to it #3294

Closed pawelbaran closed 5 months ago

pawelbaran commented 6 months ago

Description:

Recently (in https://github.com/BHoM/BHoM_Engine/pull/3283), collinearity check has been changed from numerical solution to a geometrical one, i.e. instead of computing matrices of point coordinates, a line is fit in point set and then each point is checked whether it lies within tolerance from that line. This change improved precision and robustness of the method, so I believe it would make sense to do similar with IsCoplanar.