Dynamic Water Physics 2
Search Results for

    Show / Hide Table of Contents

    Class History

    Tracks mesh decimation history for undo/redo operations during progressive mesh simplification.

    Inheritance
    object
    History
    Namespace: NWH.DWP2.MeshDecimation
    Assembly: NWH.DWP2.dll
    Syntax
    public class History

    Fields

    | Edit this page View Source

    id

    Unique identifier for this history entry.

    Declaration
    public int id
    Field Value
    Type Description
    int
    | Edit this page View Source

    removedTriangles

    List of triangle indices that were removed during this step.

    Declaration
    public List<int> removedTriangles
    Field Value
    Type Description
    List<int>
    | Edit this page View Source

    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 Source

    RemovedTriangle(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.

    | Edit this page View Source

    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.

    • Edit this page
    • View Source
    In this article
    Back to top Copyright © NWH - Vehicle Physics, Aerodynamics, Dynamic Water Physics