Block.transform_numpy

Block.transform_numpy(T)

Transform the mesh.

Parameters:
Tnumpy.ndarray

The transformation used to transform the mesh.

Returns:
None

The mesh is modified in-place.

Examples

>>> from compas.datastructures import Mesh
>>> from compas.geometry import matrix_from_axis_and_angle
>>> mesh = Mesh.from_polyhedron(6)
>>> T = matrix_from_axis_and_angle([0, 0, 1], math.pi / 4)
>>> mesh.transform_numpy(T)