Show / Hide Table of Contents

    Class ChildBase<ChildClass, GeometryType>

    An abstract base for the children of CellComplex.

    Inheritance
    System.Object
    ChildBase<ChildClass, GeometryType>
    Cell
    EdgeBase<ChildClass>
    Face
    VertexBase<ChildClass>
    Implements
    IDistanceTo
    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.CellComplex
    Assembly: Hypar.Elements.dll
    Syntax
    public abstract class ChildBase<ChildClass, GeometryType> : IDistanceTo where ChildClass : ChildBase<ChildClass, GeometryType>
    Type Parameters
    Name Description
    ChildClass
    GeometryType

    Properties

    CellComplex

    The CellComplex that this child belongs to.

    Declaration
    [JsonIgnore]
    public CellComplex CellComplex { get; }
    Property Value
    Type Description
    CellComplex

    Id

    ID of this child.

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

    Methods

    DistanceTo(Vector3)

    Get the shortest distance from a point to the geometry representing this child.

    Declaration
    public abstract double DistanceTo(Vector3 point)
    Parameters
    Type Name Description
    Vector3 point
    Returns
    Type Description
    System.Double

    Equals(Object)

    Used to handle comparisons for when we make HashSets of children 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)

    GetGeometry()

    Get the associated geometry for this child.

    Declaration
    public abstract GeometryType GetGeometry()
    Returns
    Type Description
    GeometryType

    GetHashCode()

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

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

    Implements

    IDistanceTo