axis_to_occ

compas_occ.conversions.axis_to_occ(axis)

Convert a COMPAS point and vector to an OCC axis.

Parameters:
axistuple[Point, Vector]

A point and vector representing an axis.

Returns:
gp_Ax1

See also

line_to_occ()

Examples

>>> from compas.geometry import Point, Vector
>>> from compas_occ.conversions import axis_to_occ
>>> point = Point(0, 0, 0)
>>> vector = Vector(1, 0, 0)
>>> axis_to_occ((point, vector))
<class 'gp_Ax1'>