We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug The bug is a ZeroDivisionError when I evaluate a sample curve at parameter 1.0.
To Reproduce Here is the code that produces the error. from geomdl import NURBS
from geomdl import NURBS
curve = NURBS.Curve() curve.degree = 2 curve.ctrlpts = [[-2.0, -4.0, 0.0], [-1.0, -4.0, 2.0], [0.0, -4.0, 0.0], [1.0, -4.0, 0.0], [2.0, -4.0, 0.0]] curve.weights = [1, 1, 1, 1, 1] curve.knotvector = [0, 0, 0, 0, 1, 1, 1, 1]
curve = NURBS.Curve()
curve.degree = 2
curve.ctrlpts = [[-2.0, -4.0, 0.0],
[-1.0, -4.0, 2.0],
[0.0, -4.0, 0.0],
[1.0, -4.0, 0.0],
[2.0, -4.0, 0.0]]
curve.weights = [1, 1, 1, 1, 1]
curve.knotvector = [0, 0, 0, 0, 1, 1, 1, 1]
print(curve.evaluate_single(1.0))
Expected Behavior I expect the value [2, -4, 0].
Configuration:
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
The bug is a ZeroDivisionError when I evaluate a sample curve at parameter 1.0.
To Reproduce
Here is the code that produces the error.
from geomdl import NURBS
curve = NURBS.Curve()
curve.degree = 2
curve.ctrlpts = [[-2.0, -4.0, 0.0],
[-1.0, -4.0, 2.0],
[0.0, -4.0, 0.0],
[1.0, -4.0, 0.0],
[2.0, -4.0, 0.0]]
curve.weights = [1, 1, 1, 1, 1]
curve.knotvector = [0, 0, 0, 0, 1, 1, 1, 1]
print(curve.evaluate_single(1.0))
Expected Behavior
I expect the value [2, -4, 0].
Configuration:
The text was updated successfully, but these errors were encountered: