VolMesh.transform

VolMesh.transform(transformation)[source]

Transform a mesh.

Parameters
  • volmesh (compas.datastructures.VolMesh) – The volmesh.

  • transformation (compas.geometry.Transformation) – The transformation.

Notes

The volmesh is modified in-place.

Examples

>>> volmesh = VolMesh.from_obj(compas.get('cube.obj'))
>>> T = matrix_from_axis_and_angle([0, 0, 1], pi / 4)
>>> volmesh_transform(volmesh, T)