From fde362b52656d2ebbe7a8f30ad7f417a6af087b8 Mon Sep 17 00:00:00 2001 From: Nicolas Hiillos Date: Fri, 31 Mar 2023 13:54:31 +0300 Subject: [PATCH] Set sampling points to 1000 --- src/drawing_controller/drawing_controller/svg_path_parser.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/drawing_controller/drawing_controller/svg_path_parser.py b/src/drawing_controller/drawing_controller/svg_path_parser.py index f4244cc..6d63786 100644 --- a/src/drawing_controller/drawing_controller/svg_path_parser.py +++ b/src/drawing_controller/drawing_controller/svg_path_parser.py @@ -115,7 +115,7 @@ class SVGPathParser(): maxval = np.amax(np.absolute(control_points)) #print('maxxv', maxval) #control_points = control_points / maxval #normalize values - n = 50 + n = 1000 curve = cf.bezier(control_points) lin = np.linspace(curve.start(0), curve.end(0), n) coordinates = curve(lin) @@ -140,7 +140,7 @@ class SVGPathParser(): nonlocal x nonlocal y control_points = np.array(control_points) - n = 50 + n = 1000 curve = cf.bezier(control_points, quadratic=True) lin = np.linspace(curve.start(0), curve.end(0), n) coordinates = curve(lin)