hyperbola_to_compas
- compas_occ.conversions.hyperbola_to_compas(hypr)
- Construct a COMPAS hyperbola from an OCC hyperbola. - Parameters:
- hyprgp_Hypr
- The OCC hyperbola. 
 
- hypr
- Returns:
 - Examples - >>> from OCC.Core.gp import gp_Pnt, gp_Dir, gp_Ax2, gp_Hypr >>> from compas_occ.conversions import hyperbola_to_compas >>> ax2 = gp_Ax2(gp_Pnt(0, 0, 0), gp_Dir(0, 0, 1), gp_Dir(1, 0, 0)) >>> hypr = gp_Hypr(ax2, 1, 0.5) >>> hyperbola_to_compas(hypr) Hyperbola(major=1.0, minor=0.5, frame=Frame(...))