// Use this for initialization
    public LloydsAlgorithm(Vector3[] vertices)
    {
        // Convert data representation
        List <Vector3Vertex> vertexList = new List <Vector3Vertex>();

        foreach (Vector3 v in vertices)
        {
            vertexList.Add(new Vector3Vertex(v));
        }

        // perform triangulation
        var voronoi = Triangulation.CreateVoronoi <Vector3Vertex, Tetrahedron>(vertexList);

        //var delaunay = Triangulation.CreateDelaunay(vertexList);


        GameObject.Destroy(_voronoi);
        _voronoi = new GameObject("Voronoi");
        //GameObject.Destroy(_delaunay);
        //_delaunay = new GameObject("Delaunay");

        //visualizeVertices(voronoi);
        visualizeEdges(voronoi);
        //visualizeCells(voronoi);

        //visualizeVertices(delaunay);
        //visualizeEdges(delaunay);
    }