compas_line_to_occ_line

compas_occ.conversions.compas_line_to_occ_line(line)[source]

Convert a COMPAS line to an OCC line.

Parameters

line (Line) – The COMPAS line to convert.

Returns

gp_Lin

Examples

>>> from compas.geometry import Line
>>> Line.to_occ = compas_line_to_occ_line
>>> line = Line([0, 0, 0], [1, 0, 0])
>>> line.to_occ()
<class 'gp_Lin'>