mesh_transformed
-
compas.datastructures.
mesh_transformed
(mesh, transformation)[source] Transform a copy of
mesh
.- Parameters
mesh (compas.datastructures.Mesh) – The mesh.
transformation (compas.geometry.Transformation) – The transformation.
- Returns
Mesh – A transformed independent copy of
mesh
.
Notes
The original mesh is not modified. Instead a transformed independent copy is returned.
Examples
>>> mesh = Mesh.from_obj(compas.get('cube.obj')) >>> T = matrix_from_axis_and_angle([0, 0, 1], pi / 4) >>> tmesh = mesh_transformed(mesh, T)