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

Generate more correct shapes as result of 2D difference #317

Merged
merged 7 commits into from
Mar 9, 2022
Merged

Conversation

hannobraun
Copy link
Owner

@hannobraun hannobraun commented Mar 9, 2022

The Shape instance created as the result of a 2D difference isn't internally consistent. It contains objects that refer to other objects, which are part of one of the input Shapes, but not part of the result. As far as I can tell, this doesn't result in any bugs, but it limits algorithms that operate on the result's Shape instance.

This pull request improves the situation, making the result not fully correct, but much more so. It should be good enough to rewrite the sweep algorithm, so it no longer causes vertex validation warnings. This is required to address #242, and there's a WIP version of this rewrite in #278.

@hannobraun hannobraun enabled auto-merge March 9, 2022 14:26
@hannobraun hannobraun merged commit c4bcfdc into main Mar 9, 2022
@hannobraun hannobraun deleted the diff branch March 9, 2022 14:28
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