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

>>> line = Line(Point(0, 0, 0), Point(0, 0, 1))
>>> cone = Cone.from_line_and_radius(line, 0.3)