forked from Whinarn/UnityMeshSimplifier
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
103 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,33 @@ | ||
# MeshSimplifier | ||
|
||
Fork of the UnityMeshSimplifier Library adapted for modern .NET 9+ projects | ||
Trimmed down fork of the [UnityMeshSimplifier](https://github.com/Whinarn/UnityMeshSimplifier) Library adapted for modern non-Unity .NET 9+ projects | ||
|
||
## Basic usage | ||
|
||
```csharp | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters