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

levelset: fix evaluation of levelset for surfaces that contain pixel elements #376

Merged
merged 4 commits into from
Apr 20, 2023

Conversation

andrea-iob
Copy link
Member

Connectivity of pixel elements does not list the vertices in anti-clockwise order. This needs to be properly taken into account when flipping the normal and when evaluating segment information.

…ordered vertices

The function that projects a point onto a polygon expects in input an
anti-clockwise ordered list of vertex coordinates.
@andrea-iob
Copy link
Member Author

I've added an additional fix for the hash operator of ElementHalfItem.

@andrea-iob andrea-iob merged commit b3c7c19 into master Apr 20, 2023
@andrea-iob andrea-iob deleted the levelset.fix.pixel.segments branch April 20, 2023 15:13
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.

2 participants