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

fix(BasicObjects): add is_degenerated #1032

Merged
merged 3 commits into from
Oct 23, 2024
Merged

Conversation

BotellaA
Copy link
Member

No description provided.

@BotellaA BotellaA requested a review from panquez October 21, 2024 22:30
@BotellaA BotellaA force-pushed the fix/basic-obj-degen branch from e0d00ca to ff0fe6b Compare October 22, 2024 00:14
Comment on lines 288 to 290
return point_line_distance(
point2, InfiniteLine< dimension >{ edge } )
<= GLOBAL_EPSILON;
Copy link
Member

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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

return false

Comment on lines 106 to 108
return std::get< 0 >(
point_plane_distance( point3, Plane{ triangle } ) )
<= GLOBAL_EPSILON;
Copy link
Member

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

Copy link
Member

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

Copy link
Member Author

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?

Copy link
Member

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

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

@BotellaA BotellaA requested a review from panquez October 22, 2024 09:45
@BotellaA BotellaA requested review from panquez and removed request for panquez October 23, 2024 14:53
@MelchiorSchuh MelchiorSchuh merged commit 7c973ee into next Oct 23, 2024
18 checks passed
@MelchiorSchuh MelchiorSchuh deleted the fix/basic-obj-degen branch October 23, 2024 17:16
@BotellaA
Copy link
Member Author

🎉 This PR is included in version 15.5.4-rc.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@BotellaA
Copy link
Member Author

🎉 This PR is included in version 15.5.4 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

3 participants