Skip to content

Latest commit

 

History

History
38 lines (25 loc) · 1.11 KB

README.md

File metadata and controls

38 lines (25 loc) · 1.11 KB

MeshSimplifier

NuGet Downloads

Trimmed down fork of the UnityMeshSimplifier Library adapted for modern non-Unity .NET 9+ projects

Installation

Install the NuGet package Sowa705.MeshSimplifier

Basic usage

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();

Removed features

  • Unity integration
  • BlendShapes
  • BoneWeights (may be re-added in the future)
  • 3D and 4D UVs (may be re-added in the future)

License

This project is licensed as MIT as stated in LICENSE.md, huge thanks to the UnityMeshSimplifer contributors and Fast Quadric Mesh Simplification team