From 379cf273cb39813aa8819a7c81bf4d2e6de0f948 Mon Sep 17 00:00:00 2001 From: jaseg Date: Fri, 22 Aug 2025 13:24:02 +0200 Subject: Fix out-of-date documentation --- examples/test_arc_approx.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'examples/test_arc_approx.py') diff --git a/examples/test_arc_approx.py b/examples/test_arc_approx.py index 76d4116..a93864a 100644 --- a/examples/test_arc_approx.py +++ b/examples/test_arc_approx.py @@ -2,6 +2,7 @@ import math +from gerbonara.utils import MM from gerbonara.graphic_objects import Arc from gerbonara.graphic_objects import rotate_point @@ -22,7 +23,8 @@ def approx_test(): x1, y1 = rotate_point(0, -1, start_angle*eps) x2, y2 = rotate_point(x1, y1, sweep_angle*eps*(-1 if clockwise else 1)) - arc = Arc(x1+cx, y1+cy, x2+cx, y2+cy, -x1, -y1, clockwise=clockwise, aperture=None, polarity_dark=True) + arc = Arc(x1+cx, y1+cy, x2+cx, y2+cy, -x1, -y1, clockwise=clockwise, aperture=None, + polarity_dark=True, unit=MM) lines = arc.approximate(max_error=max_error) print(f'