circle_to_compas
- compas_occ.conversions.circle_to_compas(circ, cls=None)
- Construct a COMPAS circle from an OCC circle. - Parameters:
- circgp_Circ
- The OCC circle. 
- clsType[Circle], optional
- The type of COMPAS circle. 
 
- circ
- Returns:
 - See also - Examples - >>> from OCC.Core.gp import gp_Pnt, gp_Dir, gp_Ax2, gp_Circ >>> from compas_occ.conversions import circle_to_compas >>> ax2 = gp_Ax2(gp_Pnt(0, 0, 0), gp_Dir(0, 0, 1), gp_Dir(1, 0, 0)) >>> circ = gp_Circ(ax2, 1) >>> circle_to_compas(circ) Circle(radius=1.0, frame=Frame(...)