Cone.transform
- Cone.transform(transformation)[source]
Transform the cone.
- Parameters
transformation (
Transformation
) – The transformation used to transform the cone.- Returns
None
Examples
>>> from compas.geometry import Frame >>> from compas.geometry import Transformation >>> from compas.geometry import Plane >>> from compas.geometry import Cone >>> from compas.geometry import Circle >>> circle = Circle(Plane.worldXY(), 5) >>> cone = Cone(circle, 7) >>> frame = Frame([1, 1, 1], [0.68, 0.68, 0.27], [-0.67, 0.73, -0.15]) >>> T = Transformation.from_frame(frame) >>> cone.transform(T)