-
Notifications
You must be signed in to change notification settings - Fork 232
Better tet slicing #129
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
Better tet slicing #129
Conversation
|
I started to play around with this and it's so cool!! A few things that would be nice to support if possible:
Of those (1) and (2) are definitely just "would be nice" things. (3) is a little bit more crucial I think, since it could be confusing for users if we don't support it, and I don't think it should be too hard. |
|
Amazing work! I still can't get over how fun this is to play around with. Some comments have messing with the demo for a little while (I have no looked at the actual code yet, will do that later).
|
|
I was able to fix the hex to tet issue with the algorithm in this paper https://www.researchgate.net/profile/Julien-Dompierre/publication/221561839_How_to_Subdivide_Pyramids_Prisms_and_Hexahedra_into_Tetrahedra/links/0912f509c0b7294059000000/How-to-Subdivide-Pyramids-Prisms-and-Hexahedra-into-Tetrahedra.pdf?origin=publication_detail Its a bit complicated but keeps the tet division to only 5 or 6 per hex. There are no more holes in the slicing, but I'm having some issues getting the "edgeIsReal" stuff working on the slice so the edge rendering is still triangles. I also added support for vertex color quantities so that's working as expected. The vector quantities use a totally different rendering system so thats a can of worms I haven't opened yet. I also fixed those whole element crashes and renamed the "Inspect" button as you asked |
|
FYI, I am going to merge this, but I'm hiding the level set-related functionality for now because I think it still needs a bit more work.
No hurry to look in to it; let's circle back when you and I both have more time. I'm fine with it sitting in the codebase until then since we haven't exposed/documented it yet. |

Improved slicing of tet meshes in slice planes, including interpolating materials and scalar vertex quantities across sliced portions of meshes. Support for abritrary many slice planes.
Show level sets of scalar vertex quantities, with support for rendering additional scalar vertex quantities on top of these level sets.