From 880b21745ba02c674f2aecbc54847fa8dc9c66f6 Mon Sep 17 00:00:00 2001 From: Joachim Schoeberl Date: Sat, 14 Aug 2021 12:50:03 +0200 Subject: [PATCH] workplane.circle --- libsrc/occ/python_occ_shapes.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libsrc/occ/python_occ_shapes.cpp b/libsrc/occ/python_occ_shapes.cpp index e5f84281..c936f192 100644 --- a/libsrc/occ/python_occ_shapes.cpp +++ b/libsrc/occ/python_occ_shapes.cpp @@ -371,9 +371,10 @@ public: return shared_from_this(); } - auto Circle(gp_Pnt2d p, double r) + auto Circle(double x, double y, double r) { - MoveTo(p.X()+r, p.Y()); + + MoveTo(x+r, y); Direction (0, 1); Arc(r, 180); Arc(r, 180);