You've already forked godot
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user