-
Notifications
You must be signed in to change notification settings - Fork 25
Quadric surface #135
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
base: main
Are you sure you want to change the base?
Quadric surface #135
Conversation
Required a change to dictionary reading to allow mixed character/number reading. Also fixed some comments in nearby files.
Adds a general quadratic shape. Also removed dotProduct from surfaces in favour of intrinsic dot_product.
valeriaRaffuzzi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All good to me! The only doubt is about the surface tolerance, I am not convinced about that but I don't think I have a better suggestion for now. We should think about this a bit more I think.
| !! | ||
| !! F(x,y,z) = Ax^2 + By^2 + Cz^2 + Dxy + Eyz + Fzx + Gx + Hy + Iz + J | ||
| !! | ||
| !! Surface tolerance: 2 * max(coeffs) * SURF_TOL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why max(coeffs) as tolerance?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't really have a good answer for this. I haven't been able to find a good prescription for this anywhere. Might it be fine for now?
Also addresses some PR comments
Adds a general quadratic shape of the form:
F(x,y,z) = Ax^2 + By^2 + Cz^2 + Dxy + Eyz + Fxz + Gx + Hy + Jz + I
Also removed dotProduct from surfaces in favour of intrinsic dot_product.