Search Results for

    Show / Hide Table of Contents

    Class MCIndexPointSnapper

    "Snaps" all ISegmentStrings in a ISpatialIndex<T> containing MonotoneChains to a given HotPixel.

    Inheritance
    object
    MCIndexPointSnapper
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: NetTopologySuite.Noding.Snapround
    Assembly: NetTopologySuite.dll
    Syntax
    public class MCIndexPointSnapper

    Constructors

    | Edit this page View Source

    MCIndexPointSnapper(ISpatialIndex<MonotoneChain>)

    Initializes a new instance of the MCIndexPointSnapper class.

    Declaration
    public MCIndexPointSnapper(ISpatialIndex<MonotoneChain> index)
    Parameters
    Type Name Description
    ISpatialIndex<MonotoneChain> index

    Methods

    | Edit this page View Source

    Snap(HotPixel)

    Snaps (nodes) all interacting segments to this hot pixel. The hot pixel may represent a vertex of an edge, in which case this routine uses the optimization of not noding the vertex itself

    Declaration
    public bool Snap(HotPixel hotPixel)
    Parameters
    Type Name Description
    HotPixel hotPixel

    The hot pixel to snap to.

    Returns
    Type Description
    bool

    true if a node was added for this pixel.

    | Edit this page View Source

    Snap(HotPixel, ISegmentString, int)

    Snaps (nodes) all interacting segments to this hot pixel. The hot pixel may represent a vertex of an edge, in which case this routine uses the optimization of not noding the vertex itself

    Declaration
    public bool Snap(HotPixel hotPixel, ISegmentString parentEdge, int hotPixelVertexIndex)
    Parameters
    Type Name Description
    HotPixel hotPixel

    The hot pixel to snap to.

    ISegmentString parentEdge

    The edge containing the vertex, if applicable, or null.

    int hotPixelVertexIndex
    Returns
    Type Description
    bool

    true if a node was added for this pixel.

    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX