ellipse_to_occ

compas_occ.conversions.ellipse_to_occ(ellipse)

Construct an OCC ellipse from a COMPAS ellipse.

Parameters:
ellipsecompas.geometry.Ellipse

The COMPAS ellipse.

Returns:
gp_Elips

See also

circle_to_occ()

Examples

>>> from compas.geometry import Ellipse
>>> from compas_occ.conversions import ellipse_to_occ
>>> ellipse = Ellipse(1, 0.5)
>>> ellipse_to_occ(ellipse)
<class 'gp_Elips'>