compas_line_to_occ_line
- compas_occ.conversions.compas_line_to_occ_line(line: compas.geometry.curves.line.Line) OCC.Core.gp.gp_Lin
Convert a COMPAS line to an OCC line.
- Parameters
- line
Line
The COMPAS line to convert.
- line
- Returns
gp_Lin
See also
compas_axis_to_occ_axis()
Examples
>>> from compas.geometry import Line >>> from compas_occ.conversions import compas_line_to_occ_line >>> line = Line([0, 0, 0], [1, 0, 0]) >>> compas_line_to_occ_line(line) <class 'gp_Lin'>