-
Notifications
You must be signed in to change notification settings - Fork 152
New issue
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
run NURBS Surface example but "ZeroDivisionError" #146
Comments
I have exactly the same problem! Has there been any progress on this? |
The problem can be solved by using homogenous control points as follows. from geomdl import NURBS as nrb SURFACE EXAMPLEDefine surface objectsrf = nrb.Surface() Assign surface degreessrf.degree_u = 3 Assign control points. Here control points must be merged with weights and then flipped (python use the v-order)control_points = [[0, 0, 0], [0, 0, 1], [2, 0, 1], [2, 0, 0], Assign knot vectorssrf.knotvector_u = [0, 0, 0, 0, 1, 1, 1, 1] Parameters used as steps for point evaluationsrf.delta_u = 0.2 |
Describe the bug
run NURBS Surface example
https://nurbs-python.readthedocs.io/en/5.x/module_nurbs.html#nurbs-surface
but failed.
To Reproduce
Steps to reproduce the behavior:
The error message:
Expected Behavior
I had tried to reduce surf.delta to 0.01, 0.005, also got ZeroDivisionError
Configuration:
The text was updated successfully, but these errors were encountered: