OCCBrepEdge.to_ellipse

OCCBrepEdge.to_ellipse()

Convert the edge geometry to an ellipse.

Returns:
Ellipse

A COMPAS ellipse.

Raises:
ValueError

If the underlying geometry is not an ellipse.