public string BuildMorseTheory(TriMesh mesh, double[] function) { morseVertice = ComputeMorseVertice(mesh, function); string morseinfo = " Vertices - Edges + Faces= "; morseinfo += TriMeshUtil.CountEulerCharacteristic(mesh) + "\r\n"; morseinfo += " Saddle: " + morseVertice.SaddleList.Count + "\r\n"; morseinfo += " Maxima: " + morseVertice.MaxList.Count + "\r\n"; morseinfo += " Minima: " + morseVertice.MinList.Count + "\r\n"; morseinfo += " Minima - Saddle + Maxima = "; morseinfo += morseVertice.MinList.Count - morseVertice.SaddleList.Count + morseVertice.MaxList.Count + "\r\n"; return(morseinfo); }