Skip to content

Conversation

@ChasingNeutrons
Copy link
Collaborator

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.

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.
Copy link
Member

@valeriaRaffuzzi valeriaRaffuzzi left a 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
Copy link
Member

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?

Copy link
Collaborator Author

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants