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