bestfit_frame_numpy
- compas.geometry.bestfit_frame_numpy(points)[source]
Fit a frame to a set of points.
- Parameters:
- pointsarray_like[point]
XYZ coordinates of the points.
- Returns:
- [float, float, float]
The frame origin.
- [float, float, float]
The local X axis.
- [float, float, float]
The local Y axis.
- 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.