Dynamic Water Physics 2
Search Results for

    Show / Hide Table of Contents

    Class VoronoiMesh<TVertex, TCell, TEdge>

    A representation of a voronoi mesh.

    Inheritance
    object
    VoronoiMesh<TVertex, TCell, TEdge>
    Namespace: NWH.DWP2.MiConvexHull
    Assembly: NWH.DWP2.dll
    Syntax
    public class VoronoiMesh<TVertex, TCell, TEdge> where TVertex : IVertex where TCell : TriangulationCell<TVertex, TCell>, new() where TEdge : VoronoiEdge<TVertex, TCell>, new()
    Type Parameters
    Name Description
    TVertex

    The type of the t vertex.

    TCell

    The type of the t cell.

    TEdge

    The type of the t edge.

    Properties

    | Edit this page View Source

    Edges

    Edges connecting the cells. The same information can be retrieved Cells' Adjacency.

    Declaration
    public IEnumerable<TEdge> Edges { get; }
    Property Value
    Type Description
    IEnumerable<TEdge>

    The edges.

    | Edit this page View Source

    Vertices

    Vertices of the diagram.

    Declaration
    public IEnumerable<TCell> Vertices { get; }
    Property Value
    Type Description
    IEnumerable<TCell>

    The vertices.

    Methods

    | Edit this page View Source

    Create(IList<TVertex>)

    Create a Voronoi diagram of the input data.

    Declaration
    public static VoronoiMesh<TVertex, TCell, TEdge> Create(IList<TVertex> data)
    Parameters
    Type Name Description
    IList<TVertex> data

    The data.

    Returns
    Type Description
    VoronoiMesh<TVertex, TCell, TEdge>

    VoronoiMesh<TVertex, TCell, TEdge>.

    Exceptions
    Type Condition
    ArgumentNullException

    data

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