Skip to content

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