VolMesh.transformed

VolMesh.transformed(transformation)[source]

Transform a copy of volmesh.

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

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

Returns

VolMesh – A transformed independent copy of volmesh.

Notes

The original volmesh is not modified. Instead a transformed independent copy is returned.

Examples

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