Torus.transform

Torus.transform(transformation)[source]

Transform the torus.

Parameters

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

Examples

>>> from compas.geometry import Frame
>>> from compas.geometry import Plane
>>> from compas.geometry import Transformation
>>> from compas.geometry import Torus
>>> torus = Torus(Plane.worldXY(), 5, 2)
>>> frame = Frame([1, 1, 1], [0.68, 0.68, 0.27], [-0.67, 0.73, -0.15])
>>> T = Transformation.from_frame(frame)
>>> torus.transform(T)