direction_to_occ

compas_occ.conversions.direction_to_occ(vector)

Convert a COMPAS vector to an OCC direction.

Parameters:
vectorVector

The COMPAS vector to convert.

Returns:
gp_Dir

See also

vector_to_occ()

Examples

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