compas_vector_to_occ_direction
- compas_occ.conversions.compas_vector_to_occ_direction(vector)[source]
Convert a COMPAS vector to an OCC direction.
- Parameters
vector (
Vector
) – The COMPAS vector to convert.- Returns
gp_Dir
Examples
>>> from compas.geometry import Vector >>> Vector.to_occ_dir = compas_vector_to_occ_direction >>> vector = Vector(1, 0, 0) >>> vector.to_occ_dir() <class 'gp_Dir'>