nape-js API
    Preparing search index...

    Interface VoronoiCell

    A single Voronoi cell: the site that generated it and its polygon vertices (CCW).

    interface VoronoiCell {
        site: VoronoiPoint;
        siteIndex: number;
        vertices: VoronoiPoint[];
    }
    Index

    Properties

    The generating site coordinates.

    siteIndex: number

    The generating site index (into the original points array).

    vertices: VoronoiPoint[]

    Cell polygon vertices in counter-clockwise order.