Cone.from_line_and_radius
- classmethod Cone.from_line_and_radius(line, radius)[source]
Construct a cone from a line and a radius.
- Parameters:
- line
compas.geometry.Line
The axis of the cone.
- radiusfloat
The radius of the base circle of the cone.
- line
- Returns:
compas.geometry.Cone
The cone.
See also
Examples
>>> from compas.geometry import Line >>> line = Line([0, 0, 0], [0, 0, 1]) >>> cone = Cone.from_line_and_radius(line, 0.3)