Show / Hide Table of Contents

    Class Vertex

    A unique vertex in a adaptive grid. Class is forked from CellComplex.Vertex.

    Inheritance
    System.Object
    Vertex
    Inherited Members
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Elements.Spatial.AdaptiveGrid
    Assembly: Hypar.Elements.dll
    Syntax
    public class Vertex

    Fields

    Edges

    All Edges connected to this Vertex.

    Declaration
    [JsonIgnore]
    public HashSet<Edge> Edges
    Field Value
    Type Description
    System.Collections.Generic.HashSet<Edge>

    Properties

    Id

    ID of this Vertex.

    Declaration
    public ulong Id { get; }
    Property Value
    Type Description
    System.UInt64

    Point

    Position of this Vertex in 3D space

    Declaration
    public Vector3 Point { get; set; }
    Property Value
    Type Description
    Vector3

    Methods

    Equals(Object)

    Used to handle comparisons for when we make HashSets of this type.

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    System.Object obj
    Returns
    Type Description
    System.Boolean
    Overrides
    System.Object.Equals(System.Object)

    GetEdge(UInt64)

    Find edge between this Vertex and Vertex with given ID.

    Declaration
    public Edge GetEdge(ulong otherId)
    Parameters
    Type Name Description
    System.UInt64 otherId

    Id of other vertex.

    Returns
    Type Description
    Edge

    Edge between this and Vertex with given ID. Null if not found.

    GetHashCode()

    Used to return a unique identifier for when we make HashSets of this type.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    System.Int32
    Overrides
    System.Object.GetHashCode()