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
- vector
Vector
The COMPAS vector to convert.
- vector
- Returns
gp_Dir
See also
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'>