compas_torus_to_occ_torus

compas_occ.conversions.compas_torus_to_occ_torus(torus: compas.geometry.shapes.torus.Torus) OCC.Core.gp.gp_Torus

Convert a COMPAS torus to an OCC torus.

Parameters
toruscompas.geometry.Torus

The COMPAS torus.

Returns
gp_Torus

Examples

>>> from compas.geometry import Torus
>>> from compas_occ.conversions import compas_torus_to_occ_torus
>>> torus = Torus(1, 0.5)
>>> compas_torus_to_occ_torus(torus)
<class 'gp_Torus'>