volmesh_transform
- compas.datastructures.volmesh_transform(volmesh, transformation)[source]
Transform a mesh.
- Parameters
volmesh (
VolMesh
) – The volmesh.transformation (
Transformation
) – The transformation.
- Returns
None
Notes
The volmesh is modified in-place.
Examples
>>> from compas.datastructures import VolMesh >>> from compas.geometry import Rotation >>> volmesh = VolMesh.from_obj(compas.get('boxes.obj')) >>> T = Rotation.from_axis_and_angle([0, 0, 1], math.pi / 4) >>> volmesh_transform(volmesh, T)