Show / Hide Table of Contents

    Interface IHasNeighbors<ChildClass, GeometryType>

    An interface for children of cell complex that have easily defined neighbors of the same class.

    Namespace: Elements.Spatial.CellComplex.Interfaces
    Assembly: Hypar.Elements.dll
    Syntax
    public interface IHasNeighbors<ChildClass, GeometryType>
    Type Parameters
    Name Description
    ChildClass
    GeometryType

    Methods

    GetClosestNeighbor(Vector3)

    Get the closest associated neighbor of this element to the target point.

    Declaration
    ChildClass GetClosestNeighbor(Vector3 target)
    Parameters
    Type Name Description
    Vector3 target
    Returns
    Type Description
    ChildClass

    GetNeighbors()

    Get all associated neighbors of this element.

    Declaration
    List<ChildClass> GetNeighbors()
    Returns
    Type Description
    System.Collections.Generic.List<ChildClass>

    TraverseNeighbors(Vector3, Double)

    Traverse the neighbors of this element toward the target point.

    Declaration
    List<ChildClass> TraverseNeighbors(Vector3 target, double completedRadius = 0)
    Parameters
    Type Name Description
    Vector3 target
    System.Double completedRadius
    Returns
    Type Description
    System.Collections.Generic.List<ChildClass>