From 06fb1f78d628ff478aa783d7a193cfa633465225 Mon Sep 17 00:00:00 2001 From: Onur Rauf Bingol Date: Fri, 7 Sep 2018 00:52:50 -0500 Subject: [PATCH] Update 2D Bezier curve example --- bezier/ex_bezier_curve2d.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bezier/ex_bezier_curve2d.py b/bezier/ex_bezier_curve2d.py index 3f13171..42eac1e 100644 --- a/bezier/ex_bezier_curve2d.py +++ b/bezier/ex_bezier_curve2d.py @@ -26,8 +26,9 @@ curve1 = BSpline.Curve() # Set up the Bezier curve -curve1.ctrlpts = [[10, 0], [20, 15], [30, 0]] curve1.degree = 2 +curve1.ctrlpts = [[10, 0], [20, 15], [30, 0]] + # Auto-generate knot vector curve1.knotvector = utilities.generate_knot_vector(curve1.degree, len(curve1.ctrlpts)) @@ -51,8 +52,8 @@ curve2 = BSpline.Curve() # Set up the Bezier curve -curve2.ctrlpts = [[10, 0], [20, 15], [20, 15], [30, 0]] curve2.degree = 3 +curve2.ctrlpts = [[10, 0], [20, 15], [20, 15], [30, 0]] # Auto-generate knot vector curve2.knotvector = utilities.generate_knot_vector(curve2.degree, len(curve2.ctrlpts))