Trimmed down fork of the UnityMeshSimplifier Library adapted for modern non-Unity .NET 9+ projects
Install the NuGet package Sowa705.MeshSimplifier
using MeshSimplifier;
// load your 3D model into a Mesh object
Mesh mesh = new Mesh();
mesh.vertices = ...;
mesh.triangles = ...;
mesh.submeshes = [new SubMesh(0,mesh.triangles.Length)];
MeshSimplifier simplifier = new MeshSimplifier();
simplifier.Initialize(mesh);
simplifier.SimplifyMesh(0.5f);
var optimizedMesh = simplifier.ToMesh();
- Unity integration
- BlendShapes
- BoneWeights (may be re-added in the future)
- 3D and 4D UVs (may be re-added in the future)
This project is licensed as MIT as stated in LICENSE.md, huge thanks to the UnityMeshSimplifer contributors and Fast Quadric Mesh Simplification team