Capsule.from_circle_and_height

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

Construct a capsule from a circle and a height.

Parameters:
circlecompas.geometry.Circle

The circle.

heightfloat

The height.

Returns:
compas.geometry.Capsule

The constructed capsule.

Examples

>>> circle = Circle(Frame.worldXY(), 0.3)
>>> capsule = Capsule.from_circle_and_height(circle, 1.0)