Class MeshSimplification
- Namespace
- HelixToolkit.Geometry
- Assembly
- HelixToolkit.Geometry.dll
Fast-Quadric-Mesh-Simplification, port from https://github.com/sp4cerat/Fast-Quadric-Mesh-Simplification
public sealed class MeshSimplification
- Inheritance
-
MeshSimplification
- Inherited Members
Constructors
MeshSimplification(MeshGeometry3D?)
public MeshSimplification(MeshGeometry3D? model)
Parameters
modelMeshGeometry3D
Methods
GetMesh()
public MeshGeometry3D GetMesh()
Returns
Simplify(bool)
public MeshGeometry3D Simplify(bool verbose = false)
Parameters
verbosebool
Returns
Simplify(int, float, bool, bool)
Mesh Simplification using Fast-Quadric-Mesh-Simplification
public MeshGeometry3D Simplify(int targetCount, float aggressive = 7, bool verbose = false, bool lossless = false)
Parameters
targetCountintTarget Number of Triangles
aggressivefloatsharpness to increase the threshold, 5->8 are usually good, more iteration yields higher quality
verboseboollosslessbool