bestfit_plane_numpy
- compas.geometry.bestfit_plane_numpy(points)[source]
- Fit a plane through more than three (non-coplanar) points. - Parameters:
- pointsarray_like[point]
- XYZ coordinates of the points. 
 
- Returns:
- [float, float, float]
- A point on the plane. 
- [float, float, float]
- The normal vector. 
 
- Raises:
- ValueError
- If the number of points is smaller than the dimensionality of the points. At least two points are needed for two-dimensional data. At least three points are needed for three-dimensional data.