Constructors

Properties

sharedVertex: Vertex

Member

sharedVertex

Memberof

VoronoiCell

Instance

triangles: Triangle[]

Member

triangles

Memberof

VoronoiCell

Instance

Methods

  • Convert the voronoi cell path data to an SVG polygon data string.

    "x0,y0 x1,y1 x2,y2 ..."

    Returns string

    Method

    toPathSVGString

    Instance

    Memberof

    VoronoiCell

  • Convert this Voronoi cell to a path polygon, consisting of all Voronoi cell corner points.

    Note that open Voronoi cell cannot properly converted to Polygons as they are considered infinite. 'Open' Voronoi edges will be cut off at their innermose vertices.

    Returns Polygon

    Method

    toPolygon

    Instance

    Memberof

    VoronoiCell

  • Private

    A helper function.

    Calculate the 'infinite' open edge point based on the open path triangle 'tri' and its neighbour 'neigh'.

    This function is used to determine outer hull points.

    Parameters

    Returns Vertex

    Method

    _calcOpenEdhePoint

    Static

    Instance

    Memberof

    VoronoiCell

Generated using TypeDoc