Trimmed down fork of the UnityMeshSimplifier Library adapted for modern non-Unity .NET 9+ projects
Install the NuGet package Sowa705.MeshSimplifier
usingMeshSimplifier;// load your 3D model into a Mesh objectMeshmesh=newMesh();mesh.vertices= ...;mesh.triangles= ...;mesh.submeshes=[newSubMesh(0,mesh.triangles.Length)];MeshSimplifiersimplifier=newMeshSimplifier();simplifier.Initialize(mesh);simplifier.SimplifyMesh(0.5f);varoptimizedMesh=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