Skip to content

Don't consider faces equal under cyclic permutation by default #241

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 4 commits into from
Feb 19, 2025

Conversation

ffreyer
Copy link
Collaborator

@ffreyer ffreyer commented Feb 12, 2025

In 0.5 we changed the hash and == functions to consider faces equal under cyclic permutation of their indices. E.g. (i, j, k) == (j, k, i). This leaves the involved vertices, the winding direction and the shape of the face the same, at least for 2D faces.

This pr reverts that change by moving that functionality into new functions. Equality and hashing require equal ordering after this. I'm not sure if we want the pre or post 0.5 functionality here, but if we do we can merge this.

@ffreyer ffreyer marked this pull request as ready for review February 19, 2025 14:01
@ffreyer ffreyer merged commit 08fab13 into master Feb 19, 2025
14 checks passed
@ffreyer ffreyer deleted the ff/cyclic-hash branch February 19, 2025 14:01
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.

1 participant