mymesh.mesh.mesh.mvbb#

property mesh.mvbb#

Minimum volume bounding box of the mesh. See also mymesh.utils.MVBB().

Examples

import mymesh
import numpy as np

# Load the stanford bunny
m = mymesh.demo_mesh('bunny')

# Perform an arbitrary rotation transformation to the mesh
m = m.Transform([np.pi/6, -np.pi/6, np.pi/6],
                transformation='rotation', InPlace=True)

box = mymesh.primitives.Box(m.mvbb, Type='surf')
../_images/mymesh-mesh-mesh-mvbb-2.png