Open Izzy-Newsham opened 1 year ago
@Izzy-Newsham Apart from your solutions, we can now use from_nodes
to not bother with the degrees. The code can thus be changed like this:
curveplots.append(bezier.Curve.from_nodes(nodes).evaluate_multi(np.linspace(0,1,bezier_precision)).T)
Hi,
Thanks for publishing this useful code!
The issue
When I run this code, I get the following error:
The potential fix
It looks like this is due to a release of the bezier package adding the
verify
argument to theCurve
constructor (this release: https://bezier.readthedocs.io/en/stable/releases/0.11.0.html).So when I set
verify=False
in line 58:curveplots.append(bezier.Curve(nodes, degree=2, verify=False).evaluate_multi(np.linspace(0,1,bezier_precision)).T)
it works!Or instead, I can change the degree:
curveplots.append(bezier.Curve(nodes, degree=3).evaluate_multi(np.linspace(0,1,bezier_precision)).T)
and this works too.