Dynamic Water Physics 2
Search Results for

    Show / Hide Table of Contents

    Class ConvexFace<TVertex, TFace>

    A convex face representation containing adjacency information.

    Inheritance
    object
    ConvexFace<TVertex, TFace>
    DefaultConvexFace<TVertex>
    TriangulationCell<TVertex, TCell>
    Namespace: NWH.DWP2.MiConvexHull
    Assembly: NWH.DWP2.dll
    Syntax
    public abstract class ConvexFace<TVertex, TFace> where TVertex : IVertex where TFace : ConvexFace<TVertex, TFace>
    Type Parameters
    Name Description
    TVertex

    The type of the t vertex.

    TFace

    The type of the t face.

    Properties

    | Edit this page View Source

    Adjacency

    Adjacency. Array of length "dimension". If F = Adjacency[i] then the vertices shared with F are Vertices[j] where j != i. In the context of triangulation, can be null (indicates the cell is at boundary).

    Declaration
    public TFace[] Adjacency { get; set; }
    Property Value
    Type Description
    TFace[]

    The adjacency.

    | Edit this page View Source

    Normal

    The normal vector of the face. Null if used in triangulation.

    Declaration
    public double[] Normal { get; set; }
    Property Value
    Type Description
    double[]

    The normal.

    | Edit this page View Source

    Vertices

    The vertices stored in clockwise order for dimensions 2 - 4, in higher dimensions the order is arbitrary. Unless I accidentally switch some index somewhere in which case the order is CCW. Either way, it is consistent. 3D Normal = (V[1] - V[0]) x (V[2] - V[1]).

    Declaration
    public TVertex[] Vertices { get; set; }
    Property Value
    Type Description
    TVertex[]

    The vertices.

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