Skip to content

Commit b3e3baa

Browse files
author
Onur Rauf Bingol
committed
Update shapes example
1 parent 09c3a96 commit b3e3baa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

shapes/ex_circle_7cp.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
from geomdl.shapes import curve2d
1111
from geomdl import operations
12+
from geomdl import multi
1213
from geomdl.visualization import VisMPL
1314

1415

@@ -23,7 +24,8 @@
2324
circle.render()
2425

2526
# Decompose the circle into Bezier curve segments
26-
bezier_segments = operations.decompose_curve(circle)
27+
segments = operations.decompose_curve(circle)
28+
bezier_segments = multi.CurveContainer(segments)
2729

2830
# Set sample size (delta)
2931
bezier_segments.sample_size = 25

0 commit comments

Comments
 (0)