TriangleNet.Mesh.Delaunay C# (CSharp) Method

Delaunay() private method

Form a Delaunay triangulation.
private Delaunay ( ) : int
return int
        private int Delaunay()
        {
            int hulledges = 0;

            if (behavior.Algorithm == TriangulationAlgorithm.Dwyer)
            {
                Dwyer alg = new Dwyer();
                hulledges = alg.Triangulate(this);
            }
            else if (behavior.Algorithm == TriangulationAlgorithm.SweepLine)
            {
                SweepLine alg = new SweepLine();
                hulledges = alg.Triangulate(this);
            }
            else
            {
                Incremental alg = new Incremental();
                hulledges = alg.Triangulate(this);
            }

            // The input vertices may all be collinear, so there are
            // no triangles.
            return (triangles.Count == 0) ? 0 : hulledges;
        }