OCCBrepEdge.to_line

OCCBrepEdge.to_line()

Convert the edge geometry to a line.

Returns:
Line

A COMPAS line.

Raises:
ValueError

If the underlying geometry is not a line.