vector_to_occ

compas_occ.conversions.vector_to_occ(vector)

Convert a COMPAS vector to an OCC vector.

Parameters:
vectorVector

The COMPAS vector to convert.

Returns:
gp_Vec

Examples

>>> from compas.geometry import Vector
>>> from compas_occ.conversions import vector_to_occ
>>> vector = Vector(1, 0, 0)
>>> vector_to_occ(vector)
<class 'gp_Vec'>