-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
fix(BasicObjects): add is_degenerated #1032
Conversation
e0d00ca
to
ff0fe6b
Compare
return point_line_distance( | ||
point2, InfiniteLine< dimension >{ edge } ) | ||
<= GLOBAL_EPSILON; |
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.
Not a return her, but if <= GLOBAL_EPSILON return true
point2, InfiniteLine< dimension >{ edge } ) | ||
<= GLOBAL_EPSILON; | ||
} | ||
return true; |
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.
return false
return std::get< 0 >( | ||
point_plane_distance( point3, Plane{ triangle } ) ) | ||
<= GLOBAL_EPSILON; |
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.
not a return here. but if <= GLOBAL_EPSILON then return true, else go for the next tetrahedron_facet
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.
Or you do not have to iterates in the 4 facets, since you will directly have an answer on the first tested facet
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.
Might be enough... If it is degen then the simplex is degen, is not the distance once should be enough to determine since we are in a simplex. What do you think?
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.
So remove the main for loop?
<= GLOBAL_EPSILON; | ||
} | ||
} | ||
return true; |
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.
return false, if it is ok for all 4 facets
…nto fix/basic-obj-degen
🎉 This PR is included in version 15.5.4-rc.2 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 15.5.4 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
No description provided.