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

Refactor orientation-determining code #4124

Open
wants to merge 4 commits into
base: devel
Choose a base branch
from

Conversation

nmnobre
Copy link
Member

@nmnobre nmnobre commented Mar 31, 2025

Hi,

Though this keeps lexicographic ordering on the point coordinates as the orientation-determining factor, there is now both a single place where we determine edge orientations, Elem::positive_edge_orientation(), and a single place where we determine face orientations, Elem::positive_face_orientation(), for the entire codebase. This should make things easier if and when we decide to switch to comparing ids instead.

Cheers,
Nuno

@moosebuild
Copy link

moosebuild commented Apr 1, 2025

Job Coverage, step Generate coverage on f927733 wanted to post the following:

Coverage

1fba56 #4124 f92773
Total Total +/- New
Rate 63.32% 63.32% +0.00% 65.07%
Hits 74333 74328 -5 95
Misses 43056 43053 -3 51

Diff coverage report

Full coverage report

Warnings

  • New new line coverage rate 65.07% is less than the suggested 90.0%

This comment will be updated on new commits.

@nmnobre
Copy link
Member Author

nmnobre commented Apr 1, 2025

I'd love to take credit for something clever but this code doesn't look familiar at all ;-)

Oh, I think you might be right @jwpeterson, the furthest I can go is to a massive commit by David Knezevic in 2011. The code I based the new face orientation function on seems to be from "the before times".

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