compas_vector_to_occ_direction

compas_occ.conversions.compas_vector_to_occ_direction(vector: compas.geometry.vector.Vector) OCC.Core.gp.gp_Dir

Convert a COMPAS vector to an OCC direction.

Parameters
vectorVector

The COMPAS vector to convert.

Returns
gp_Dir

Examples

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