direction_to_occ
- compas_occ.conversions.direction_to_occ(vector)
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 direction_to_occ >>> vector = Vector(1, 0, 0) >>> direction_to_occ(vector) <class 'gp_Dir'>