diff options
author | PouleyKetchoupp <pouleyketchoup@gmail.com> | 2021-07-07 12:14:12 -0700 |
---|---|---|
committer | PouleyKetchoupp <pouleyketchoup@gmail.com> | 2021-07-07 12:14:12 -0700 |
commit | 1de995ae9911fdc3ce609a8c8f84e023531ea6bc (patch) | |
tree | 33009cadf51d6add3d56772b238d196e35594ba9 /editor/import | |
parent | 56d712686496845cab3bfd6a6ed67e4efc2c39d5 (diff) |
Options to clean/simplify convex hull generated from mesh
Clean: remove duplicate and interior vertices (uses Bullet algorithm)
Simplify: modify the geometry for further simplification (uses VHACD
algorithm)
In the editor, single convex hull now uses the clean option.
Added a new editor entry to create a simplified convex hull, can be
useful for creating convex hull from highly tessellated triangle meshes.
Diffstat (limited to 'editor/import')
-rw-r--r-- | editor/import/scene_importer_mesh.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/import/scene_importer_mesh.cpp b/editor/import/scene_importer_mesh.cpp index ce78166d1e..f8e93df382 100644 --- a/editor/import/scene_importer_mesh.cpp +++ b/editor/import/scene_importer_mesh.cpp @@ -506,7 +506,7 @@ Vector<Ref<Shape3D>> EditorSceneImporterMesh::convex_decompose() const { const Vector<Face3> faces = get_faces(); - Vector<Vector<Face3>> decomposed = Mesh::convex_composition_function(faces); + Vector<Vector<Face3>> decomposed = Mesh::convex_composition_function(faces, -1); Vector<Ref<Shape3D>> ret; |