Draft
Conversation
Tested on a tetrahedron
Needs testing. Orient algorithm seems to fail on subdivided mesh, even when subdivision is done manually.
Member
Contributor
Author
|
This is still immensely helpful though, thanks. I was hoping we could just use the lower dim subdivisions to make the code easier but it seems like I might just have to recreate the whole thing. |
This file contains hidden or 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
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.

Following the success of the binary and cubic subdivisions for 2D meshes, this PR is introducing the binary subdivision for 3D meshes. The idea behind this subdivision is to take any coarse 3D mesh, which can be made manually, and to subdivide it automatically to quickly get a mesh that can be used in simulations.
The subdivision technique works on a per-tetrahedron basis. Working on the hollow 2-simplex, a binary subdivision is applied via the 2D binary subdivision. Then tetrahedra are glued on, first those on the outer portions which have as one of their vertices an original vertex (vs. a midpoint vertex) of which there are four. This leaves an octahedron in the center which can be further subdivided into four other tetrahedra. The end result for any particular tetrahedron should look as follows:
