parabola_to_compas

compas_occ.conversions.parabola_to_compas(parab)

Construct a COMPAS parabola from an OCC parabola.

Parameters:
parabgp_Parab

The OCC parabola.

Returns:
Parabola

Examples

>>> from OCC.Core.gp import gp_Pnt, gp_Dir, gp_Ax2, gp_Parab
>>> from compas_occ.conversions import parabola_to_compas
>>> ax2 = gp_Ax2(gp_Pnt(0, 0, 0), gp_Dir(0, 0, 1), gp_Dir(1, 0, 0))
>>> parab = gp_Parab(ax2, 1)
>>> parabola_to_compas(parab)  
Parabola(focal=2.0, frame=Frame(...))