Set bezier control points to 50
This commit is contained in:
@@ -115,7 +115,7 @@ class SVGPathParser():
|
|||||||
maxval = np.amax(np.absolute(control_points))
|
maxval = np.amax(np.absolute(control_points))
|
||||||
#print('maxxv', maxval)
|
#print('maxxv', maxval)
|
||||||
#control_points = control_points / maxval #normalize values
|
#control_points = control_points / maxval #normalize values
|
||||||
n = 500
|
n = 50
|
||||||
curve = cf.bezier(control_points)
|
curve = cf.bezier(control_points)
|
||||||
lin = np.linspace(curve.start(0), curve.end(0), n)
|
lin = np.linspace(curve.start(0), curve.end(0), n)
|
||||||
coordinates = curve(lin)
|
coordinates = curve(lin)
|
||||||
@@ -140,7 +140,7 @@ class SVGPathParser():
|
|||||||
nonlocal x
|
nonlocal x
|
||||||
nonlocal y
|
nonlocal y
|
||||||
control_points = np.array(control_points)
|
control_points = np.array(control_points)
|
||||||
n = 500
|
n = 50
|
||||||
curve = cf.bezier(control_points, quadratic=True)
|
curve = cf.bezier(control_points, quadratic=True)
|
||||||
lin = np.linspace(curve.start(0), curve.end(0), n)
|
lin = np.linspace(curve.start(0), curve.end(0), n)
|
||||||
coordinates = curve(lin)
|
coordinates = curve(lin)
|
||||||
|
|||||||
Reference in New Issue
Block a user