Cylinder.from_circle_and_height

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

Construct a cylinder from a circle and a height.

Parameters:
circlecompas.geometry.Circle

The circle.

heightfloat

The height.

Returns:
compas.geometry.Cylinder

The cylinder.

Examples

>>> from compas.geometry import Circle
>>> from compas.geometry import Cylinder
>>> circle = Circle(radius=0.3)
>>> cylinder = Cylinder.from_circle_and_height(circle, height=1.0)