vmeans.add(v);
means.add(v.getArrayRef());
}
}
// Compute Delaunay Triangulation
ArrayList<Triangle> delaunay = new SweepHullDelaunay2D(vmeans).getDelaunay();
if(mode == Mode.VORONOI || mode == Mode.V_AND_D) {
Element path = VoronoiDraw.drawVoronoi(proj, delaunay, means).makeElement(svgp);
SVGUtil.addCSSClass(path, KMEANSBORDER);
layer.appendChild(path);
}