VolMesh.transform

VolMesh.transform(transformation)[source]

Transform a mesh.

Parameters:
volmeshcompas.datastructures.VolMesh

The volmesh.

transformationcompas.geometry.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)