Class VoronoiDraw


  • public final class VoronoiDraw
    extends java.lang.Object
    Draw the Voronoi cells
    Since:
    0.5.0
    Author:
    Robert Rödler, Erich Schubert
    • Constructor Detail

      • VoronoiDraw

        private VoronoiDraw()
        Private constructor. Static methods only.
    • Method Detail

      • drawDelaunay

        public static SVGPath drawDelaunay​(Projection2D proj,
                                           java.util.List<SweepHullDelaunay2D.Triangle> delaunay,
                                           java.util.List<double[]> means)
        Draw the Delaunay triangulation.
        Parameters:
        proj - Projection
        delaunay - Triangulation
        means - Means
        Returns:
        Path
      • drawVoronoi

        public static SVGPath drawVoronoi​(Projection2D proj,
                                          java.util.List<SweepHullDelaunay2D.Triangle> delaunay,
                                          java.util.List<double[]> means)
        Draw a Voronoi diagram
        Parameters:
        proj - Projection
        delaunay - Delaunay triangulation
        means - Cluster means
        Returns:
        SVG path
      • drawFakeVoronoi

        public static SVGPath drawFakeVoronoi​(Projection2D proj,
                                              java.util.List<double[]> means)
        Fake Voronoi diagram. For two means only
        Parameters:
        proj - Projection
        means - Mean vectors
        Returns:
        SVG path