Skip to content

Check overlap of SolidModel physical groups #64

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

Merged
merged 6 commits into from
Jun 13, 2025
Merged

Conversation

simlapointe
Copy link
Contributor

@simlapointe simlapointe commented Jun 6, 2025

When rendering to SolidModel, it is possible to create models with overlapping entities. These can cause errors when meshing or in downstream uses. This method checks for overlaps and displays an error or warning informing the user of the overlapping physical groups.

Copy link

codecov bot commented Jun 6, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

📢 Thoughts on this report? Let us know!

@simlapointe simlapointe marked this pull request as ready for review June 6, 2025 23:03
@simlapointe simlapointe requested a review from gpeairs June 6, 2025 23:03
@gpeairs
Copy link
Member

gpeairs commented Jun 12, 2025

I'm open to rethinking this (and our error handling/logging in general), but elsewhere strict=:warn actually means we're being stricter than strict=:error by, if anything emitted a warning during a long operation, throwing an error at the end of that operation. The idea was that there may be circumstances where warnings are serious enough that you want to handle them like errors.

What I would do here is not worry about strict, always emit a warning if there are intersecting groups, and also return a list of pairs of intersecting groups. Then the caller can decide what to do based on the emitted warning (like if we decide to make this an option inside render!) or non-empty list (for direct use).

@simlapointe
Copy link
Contributor Author

Sounds good, made changes to remove the strict argument and output the overlapping groups.

Copy link
Member

@gpeairs gpeairs left a comment

Choose a reason for hiding this comment

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

Thanks, just a few more minor comments.

@gpeairs gpeairs merged commit 7083c34 into main Jun 13, 2025
6 checks passed
@gpeairs gpeairs deleted the simlapointe/check-overlap branch June 13, 2025 14:44
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