Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

sowa705/MeshSimplifier

Open more actions menu
 
 

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

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.