update lab1
This commit is contained in:
@@ -21,7 +21,7 @@ def ibezier(inputA):
|
||||
global num_sample
|
||||
global curve_degree, is_subdivided # add for bezier
|
||||
|
||||
# Compute a point on the Bezier curve at parameter t using de Casteljau's algorithm.
|
||||
# de Casteljau's algorithm.
|
||||
# points: list of tuples/lists [(x0,y0), (x1,y1), ...]
|
||||
# Returns: (x, y) coordinates on the curve
|
||||
def deCasteljau(points, t):
|
||||
|
||||
Reference in New Issue
Block a user