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

Use Handle<Cycle> instead of Partial<Cycle> for PartialFace exterior #1682

Merged
merged 17 commits into from
Mar 14, 2023

Conversation

hannobraun
Copy link
Owner

This is one less place where PartialCycle is used and thus one more step towards removing PartialCycle in favor of Cycle. This is another step towards addressing #1570.

This makes a proper mess at all the call sites. I hope, but don't know,
that this will clear up with further work. For now, I see no alternative
to just forging ahead and see where that takes us.
This makes a proper mess at the call site. I hope, but don't know, that
this will clear up with further work. For now, I see no alternative to
just forging ahead and see where that takes us.
This duplicates some code from the `PartialCycle` implementation, which
is fine, as the new implementation is meant to replace the old one
shortly.
Verifying this on construction is becoming too limiting. And it is not
necessary. We only need half-edges once we need to determine the cycle's
winding. `Cycle::winding` can panic all by itself and doesn't need the
constructor for that.
@hannobraun hannobraun enabled auto-merge March 14, 2023 16:37
@hannobraun hannobraun merged commit c110b71 into main Mar 14, 2023
@hannobraun hannobraun deleted the unify branch March 14, 2023 16:44
@hannobraun hannobraun changed the title Use Handle<Cycle> instead of Partial<Cycle> for `PartialFace exterior Use Handle<Cycle> instead of Partial<Cycle> for PartialFace exterior Mar 15, 2023
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