Skip to content

sowa705/MeshSimplifier

 
 

Repository files navigation

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

About

Mesh simplification for .NET

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%