/// <summary> /// This function will re-calculate all the vertices and triangles. /// </summary> public void UpdateMesh() { this.mesh.Clear(); this.mesh.vertices = this.CreateVertices(); this.mesh.triangles = Triangles.Create(this.settings.Resolution); this.mesh.RecalculateNormals(); }