From b3e3baa45d464e217646eb4ecac6670434fb6e10 Mon Sep 17 00:00:00 2001 From: Onur Rauf Bingol Date: Fri, 22 Mar 2019 00:43:55 -0500 Subject: [PATCH] Update shapes example --- shapes/ex_circle_7cp.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/shapes/ex_circle_7cp.py b/shapes/ex_circle_7cp.py index 58dca1b..595ec1b 100644 --- a/shapes/ex_circle_7cp.py +++ b/shapes/ex_circle_7cp.py @@ -9,6 +9,7 @@ from geomdl.shapes import curve2d from geomdl import operations +from geomdl import multi from geomdl.visualization import VisMPL @@ -23,7 +24,8 @@ circle.render() # Decompose the circle into Bezier curve segments -bezier_segments = operations.decompose_curve(circle) +segments = operations.decompose_curve(circle) +bezier_segments = multi.CurveContainer(segments) # Set sample size (delta) bezier_segments.sample_size = 25