-
Notifications
You must be signed in to change notification settings - Fork 3
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
MeshCutter: Add inner faces. #4
Conversation
Though So I tried to store ---EDIT--- |
… of outer triangles.
todo: real recur. performance: prevent redundant codes.
Successfully filtered out outer triangles: Currently, still using the comparing-lines filter out method I came up with, works fine for non-cross geometries.
May try existing Constrained Delaunay Triangulation solutions afterwards: |
…ormals() instead.
OK! Generate inner faces. Todo:
|
This PR was originally written for the needs of Aray's OT project, but in the end Aray achieved the effect with 3D Voronoi, without using MeshCutter. The functionality of this PR has been implemented so far, but many optimizations and tests are still needed. It can be reopened if necessary. |
Fix: webaverse/app#2618
Demo: https://raw.githack.com/gonnavis/metaverse-utils/898006d9b6555ded898b0022e0022d4531a31e68/mesh-cut/test.html
Trying to add inner faces at cut plane:
Tried to think of solutions myself, such as line sweep points, but felt that there were various problems that could not be solved.
So searched and found the Delaunay triangulation algorithm, and found a repo https://github.com/mapbox/delaunator .