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

>>> 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)