ellipse_to_compas
- compas_occ.conversions.ellipse_to_compas(elips, cls=None)
- Construc a COMPAS ellipse from an OCC ellipse. - Parameters:
- elipsgp_Elips
- The OCC ellipse. 
- clsType[Ellipse], optional
- The type of COMPAS ellipse. 
 
- elips
- Returns:
 - See also - Examples - >>> from OCC.Core.gp import gp_Pnt, gp_Dir, gp_Ax2, gp_Elips >>> from compas_occ.conversions import ellipse_to_compas >>> ax2 = gp_Ax2(gp_Pnt(0, 0, 0), gp_Dir(0, 0, 1), gp_Dir(1, 0, 0)) >>> elips = gp_Elips(ax2, 1, 0.5) >>> ellipse_to_compas(elips) Ellipse(major=1.0, minor=0.5, frame=Frame(...))