void Start() { points = new List <Vector3>(test.points); monotones.Clear(); if (points.Count >= 3) { monotones = NonMonotoneTriangulation.GetMonotones(points); } else { Debug.Log("Polygon Vertex is less than 3! Check it!"); } Debug.Log(monotones[0].Count); }
public void Monotone() { DiagonalsIndex.Clear(); Diagonals.Clear(); triangles.Clear(); monotones.Clear(); if (points.Count >= 3) { monotones = NonMonotoneTriangulation.GetMonotones(points); } else { Debug.Log("Polygon Vertex is less than 3! Check it!"); } foreach (var v in monotones[0]) { Debug.Log("m : " + v); } }