BRepEdge.to_line

BRepEdge.to_line()[source]

Convert the edge geometry to a line.

Returns

Line – A COMPAS line.

Raises

ValueError – If the underlying geometry is not a line.