Cylinder.transform

Cylinder.transform(transformation)[source]

Transform the cylinder.

Parameters

transformation (Transformation) – The transformation used to transform the cylinder.

Examples

>>> from compas.geometry import Frame
>>> from compas.geometry import Transformation
>>> from compas.geometry import Plane
>>> from compas.geometry import Circle
>>> from compas.geometry import Cylinder
>>> circle = Circle(Plane.worldXY(), 5)
>>> cylinder = Cylinder(circle, 7)
>>> frame = Frame([1, 1, 1], [0.68, 0.68, 0.27], [-0.67, 0.73, -0.15])
>>> T = Transformation.from_frame(frame)
>>> cylinder.transform(T)