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 gentrap orientation #1206

Merged
merged 8 commits into from
Apr 26, 2024
Merged

Conversation

sethrj
Copy link
Member

@sethrj sethrj commented Apr 26, 2024

This is a follow-on to #1205 and #1171. The calculation of the face normals assumed that the faces were oriented as CCW, whereas they were only asserted to be convex. I've fixed it by testing the orientation and reversing the order of the polygons if needed.

@sethrj sethrj added bug Something isn't working orange Work on ORANGE geometry engine labels Apr 26, 2024
@sethrj sethrj requested a review from mrguilima April 26, 2024 01:19
@sethrj sethrj force-pushed the gentrap-fix-realsies branch from 894d8b8 to 730828f Compare April 26, 2024 13:07
Copy link
Contributor

@mrguilima mrguilima left a comment

Choose a reason for hiding this comment

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

Looks good.
Thanks @sethrj

@sethrj sethrj merged commit d6720d6 into celeritas-project:develop Apr 26, 2024
28 checks passed
@sethrj sethrj deleted the gentrap-fix-realsies branch April 26, 2024 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working orange Work on ORANGE geometry engine
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants