-
-
Notifications
You must be signed in to change notification settings - Fork 118
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 boundary representation for non-continuous sweep side faces #355
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Instead of cloning the source face, then adding the top faces, this commit updates the sweep algorithm to add the bottom faces explicitly. This adds a lot of tedious code. The advantage is, that now we can add another relation of bottom-to-top topology, which is needed for creating the side faces. I believe that there's a better API hidden within `Shape`, that will make code like this much cleaner. I am only starting to imagine what that API would look like though, so for now, this mess is what we get instead.
Generate non-continuous side faces of a sweep using boundary representation. The only case that still uses triangle representation are continuous side faces of a sweep.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This ports another case, non-continuous side faces of sweeps, to using boundary representation (#97). The last edge case to still use triangle representation are continuous side faces of sweeps. Using boundary representation for those is blocked by #250.
This adds a lot of code. That's not great. But it's fine, for two reasons:
Shape
API that will make this kind of code much cleaner. Until I know what those are, a bit of mess is okay.Shape
API, most errors you can make here will blow up in your face pretty much immediately.For now, I'm happy to get one step closer to addressing #97, and I'm looking forward to the great cleanups that my future self will surely come up with.