Brep.from_extrusion

classmethod Brep.from_extrusion(curve, vector, cap_ends=True)[source]

Construct a Brep by extruding a closed curve along a direction vector.

Parameters:
curvecompas.geometry.Curve

The curve to extrude

vectorcompas.geometry.Vector

The vector to extrude the curve by

cap_endsbool, optional

If True, the plannar ends of the extrusion will be capped, if possible.

Returns:
compas.geometry.Brep