Capsule.from_circle_and_height
- classmethod Capsule.from_circle_and_height(circle, height)[source]
Construct a capsule from a circle and a height.
- Parameters:
- circle
compas.geometry.Circle
The circle.
- heightfloat
The height.
- circle
- Returns:
compas.geometry.Capsule
The constructed capsule.
See also
Examples
>>> circle = Circle(Frame.worldXY(), 0.3) >>> capsule = Capsule.from_circle_and_height(circle, 1.0)