-
Notifications
You must be signed in to change notification settings - Fork 158
Open
Labels
bugThere is a problem with the code or documentationThere is a problem with the code or documentation
Description
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:
- OS: Windows 10
- Python distribution: python.org
- Python version: 3.12.4
- geomdl install source: PyPI
- geomdl version: 5.3.1
Metadata
Metadata
Assignees
Labels
bugThere is a problem with the code or documentationThere is a problem with the code or documentation