The current code cannot be trained and the quality of the generated tetrahedral mesh is not good. Am I doing something wrong?  