From 028c8ce63d88ee801441af8f36119023dabb2246 Mon Sep 17 00:00:00 2001 From: Joachim Schoeberl Date: Thu, 5 Aug 2021 19:38:21 +0200 Subject: [PATCH] compiler fixes for Circle2d --- libsrc/occ/python_occ.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libsrc/occ/python_occ.cpp b/libsrc/occ/python_occ.cpp index 4b4052dc..56d29dc1 100644 --- a/libsrc/occ/python_occ.cpp +++ b/libsrc/occ/python_occ.cpp @@ -870,7 +870,8 @@ DLL_HEADER void ExportNgOCC(py::module &m) }); m.def("Circle", [](gp_Pnt2d p1, double r) -> Handle(Geom2d_Curve) { - return GCE2d_MakeCircle(p1, r).Value(); + Handle(Geom2d_Circle) curve = GCE2d_MakeCircle(p1, r); + return curve; // gp_Ax2d ax; ax.SetLocation(p1); // return new Geom2d_Circle(ax, r); });