Cone.from_circle_and_height

classmethod Cone.from_circle_and_height(circle, height)[source]

Construct a cone from a circle and a height.

Parameters:
circlecompas.geometry.Circle

The base circle of the cone.

heightfloat

The height of the cone.

Returns:
compas.geometry.Cone

The cone.

Examples

>>> circle = Circle(0.3)
>>> cone = Cone.from_circle_and_height(circle, 1.0)