Skip to content

Commit 06fb1f7

Browse files
author
Onur Rauf Bingol
committed
Update 2D Bezier curve example
1 parent a86bcf9 commit 06fb1f7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

bezier/ex_bezier_curve2d.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,9 @@
2626
curve1 = BSpline.Curve()
2727

2828
# Set up the Bezier curve
29-
curve1.ctrlpts = [[10, 0], [20, 15], [30, 0]]
3029
curve1.degree = 2
30+
curve1.ctrlpts = [[10, 0], [20, 15], [30, 0]]
31+
3132

3233
# Auto-generate knot vector
3334
curve1.knotvector = utilities.generate_knot_vector(curve1.degree, len(curve1.ctrlpts))
@@ -51,8 +52,8 @@
5152
curve2 = BSpline.Curve()
5253

5354
# Set up the Bezier curve
54-
curve2.ctrlpts = [[10, 0], [20, 15], [20, 15], [30, 0]]
5555
curve2.degree = 3
56+
curve2.ctrlpts = [[10, 0], [20, 15], [20, 15], [30, 0]]
5657

5758
# Auto-generate knot vector
5859
curve2.knotvector = utilities.generate_knot_vector(curve2.degree, len(curve2.ctrlpts))

0 commit comments

Comments
 (0)