mymesh.utils.MVBB#
- mymesh.utils.MVBB(Points, return_matrix=False)[source]#
Calculate the minimum volume bounding box of the set of points
- Parameters:
Points (array_like) – nx3 point coordinates.
return_matrix (bool, optional) – option to return the rotation matrix that aligns the input Points with the local coordinate system of the MVBB, by default False.
- Returns:
mvbb (np.ndarray) – Coordinates of the corners of the MVBB
mat (np.ndarray, optional) – Rotation matrix that aligns the input Points with the local coordinate system of the MVBB