Voronoi([segments]): Create voronoi for given collection of line segments List of all cells of the voronoi diagram List of all edges of the voronoi diagram List of all vertices of the voronoi diagram Return number of cells Return number of edges Return number of vertices addPoint(vector|vector2d) add given point to input collection addSegment(vector|vector2d, vector|vector2d) add given segment to input collection constructs the voronoi diagram from the input collections assign given color to all exterior edges and vertices assign given color to all twins of edges (which one is considered a twin is arbitrary) assign given color to all edges sourced by two segments almost in line with each other (optional angle in degrees) assign color 0 to all elements with the given color Get list of all input points. Return number of input points Get list of all input segments. Return number of input segments