Skip to content
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

Function normalize in KnotVector should consider float precision #5

Open
carlos-adir opened this issue Dec 6, 2023 · 0 comments
Open
Labels
bug Something isn't working

Comments

@carlos-adir
Copy link
Collaborator

Take the knotvector

from compmec.nurbs import KnotVector
knotvector = (0.0, 0.0, 1.8678173101311735, 1.8678173101311735)
knotvector = KnotVector(knotvector)
knotvector.normalize()
print(knotvector)  # (0.0, 0.0, 0.9999999999999999, 0.9999999999999999)

It's expected to get the knotvector (0.0, 0.0, 1.0, 1.0)

@carlos-adir carlos-adir added the bug Something isn't working label Dec 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant