public void Update() { Profiler.BeginSample("evaluateAll"); this.grid.evaluateAll(this.GetComponentsInChildren <MetaBall>()); Profiler.EndSample(); Profiler.BeginSample("Mesh setting"); mesh.Clear(); mesh.SetVertices(grid.vertices); mesh.SetTriangles(grid.getTriangleList(), 0); if (this.calculateNormals) { mesh.RecalculateNormals(); } Profiler.EndSample(); }