Cone.from_line_and_radius

classmethod Cone.from_line_and_radius(line, radius)[source]

Construct a cone from a line and a radius.

Parameters:
linecompas.geometry.Line

The axis of the cone.

radiusfloat

The radius of the base circle of the cone.

Returns:
compas.geometry.Cone

The cone.

Examples

>>> from compas.geometry import Line
>>> line = Line([0, 0, 0], [0, 0, 1])
>>> cone = Cone.from_line_and_radius(line, 0.3)