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

Correctly join triangles in BuildShell::tetrahedron #1778

Merged
merged 7 commits into from
Apr 21, 2023
Merged

Conversation

hannobraun
Copy link
Owner

Previously, the edges weren't joined correctly, as the vertices were ignored. This came out of my work on #1713.

`HalfEdge` references `GlobalEdge` (which was returned before), so this
is strictly more powerful. It causes some inconvenience, which I'm going
to address in future commits.
Move that responsibility to its caller. This makes things a bit more
messy for now, but there are two extenuating circumstances:

1. It's necessary. The current approach to joining is insufficient, as
   it doesn't update the start vertex, and `BuildFace::triangle` doesn't
   have the information it needs to do it properly.
2. The new, repetitive code in `BuildShell::tetrahedron` can be factored
   into a new operations API, one specifically for joining.
Previously, the start vertices were ignored when joining, not leading to
a correct result.
@hannobraun hannobraun enabled auto-merge April 21, 2023 09:13
@hannobraun hannobraun merged commit 2af2116 into main Apr 21, 2023
@hannobraun hannobraun deleted the operations branch April 21, 2023 09:19
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