Class History
Tracks mesh decimation history for undo/redo operations during progressive mesh simplification.
Namespace: NWH.DWP2.MeshDecimation
Assembly: NWH.DWP2.dll
Syntax
public class History
Fields
| Edit this page View Sourceid
Unique identifier for this history entry.
Declaration
public int id
Field Value
| Type | Description |
|---|---|
| int |
removedTriangles
List of triangle indices that were removed during this step.
Declaration
public List<int> removedTriangles
Field Value
| Type | Description |
|---|---|
| List<int> |
replacedVertex
List of vertex replacement operations performed during this step.
Declaration
public List<ArrayList> replacedVertex
Field Value
| Type | Description |
|---|---|
| List<ArrayList> |
Methods
| Edit this page View SourceRemovedTriangle(int)
Records a triangle removal operation.
Declaration
public void RemovedTriangle(int f)
Parameters
| Type | Name | Description |
|---|---|---|
| int | f | Index of the triangle that was removed. |
ReplaceVertex(int, int, int, Vector3, Vector2, int, Vector3, Vector2)
Records a vertex replacement operation including original and new vertex data.
Declaration
public void ReplaceVertex(int f, int u, int v, Vector3 normal, Vector2 uv, int newV, Vector3 newNormal, Vector2 newUv)
Parameters
| Type | Name | Description |
|---|---|---|
| int | f | Face index. |
| int | u | Original vertex index in the triangle. |
| int | v | Vertex ID being replaced. |
| Vector3 | normal | Original vertex normal. |
| Vector2 | uv | Original texture coordinates. |
| int | newV | New vertex ID. |
| Vector3 | newNormal | New vertex normal. |
| Vector2 | newUv | New texture coordinates. |