torus_to_occ
- compas_occ.conversions.torus_to_occ(torus)
Convert a COMPAS torus to an OCC torus.
- Parameters:
- torus
compas.geometry.Torus
The COMPAS torus.
- torus
- Returns:
gp_Torus
Examples
>>> from compas.geometry import Torus >>> from compas_occ.conversions import torus_to_occ >>> torus = Torus(1, 0.5) >>> torus_to_occ(torus) <class 'gp_Torus'>