Skip to content

Commit

Permalink
Update 2D Bezier curve example
Browse files Browse the repository at this point in the history
  • Loading branch information
Onur Rauf Bingol committed Sep 7, 2018
1 parent a86bcf9 commit 06fb1f7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bezier/ex_bezier_curve2d.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand All @@ -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))
Expand Down

0 comments on commit 06fb1f7

Please sign in to comment.