1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-10 13:00:37 +00:00

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.

Specific change for 3.x:
Add support for Vector<Vector3> and PoolVector<Vector3> in the convex hull generator.
This commit is contained in:
PouleyKetchoupp
2021-07-09 15:31:05 -07:00
parent 66aadc2981
commit 240c33708c
11 changed files with 88 additions and 23 deletions

View File

@@ -111,6 +111,8 @@ public:
real_t compute(const Vector3 *p_coords, int32_t p_count, real_t p_shrink, real_t p_shrink_clamp);
static Error convex_hull(const Vector<Vector3> &p_points, Geometry::MeshData &r_mesh);
static Error convex_hull(const PoolVector<Vector3> &p_points, Geometry::MeshData &r_mesh);
static Error convex_hull(const Vector3 *p_points, int32_t p_point_count, Geometry::MeshData &r_mesh);
};
#endif // CONVEX_HULL_H