mesh_td_example_2.py tetgen problem
Hi , everyone. When I run mesh_td_example_2.py , I get the following problem , here is the traceback: Traceback (most recent call last): File "/home/custEM/custem-examples/modeling/td_e2_lotem_3d/mesh_td_example_2.py", line 77, in M.call_tetgen(tet_param='-pq1.6aA') File "/home/custEM/custEM/meshgen/meshgen_tools.py", line 2493, in call_tetgen shutil.copy2(self.w_dir + '/' + self.name + '.1.vtk', File "/home/cdut5815/.conda/envs/custEM/lib/python3.9/shutil.py", line 444, in copy2 copyfile(src, dst, follow_symlinks=follow_symlinks) File "/home/cdut5815/.conda/envs/custEM/lib/python3.9/shutil.py", line 264, in copyfile with open(src, 'rb') as fsrc: FileNotFoundError: [Errno 2] No such file or directory: './meshes/mesh_create/e2_lotem.1.vtk'
After debugging , I've found that tetgen didn't genearte the correspond vtk file. When I run the instruction in shell like: tetgen -pq1.6aA -kNEF ./meshes/mesh_create/e2_lotem.poly
the output is :
Opening ./meshes/mesh_create/e2_lotem.poly. Opening ./meshes/mesh_create/e2_lotem.edge. Delaunizing vertices... Exception: All vertices are coplanar (Tol = 1e-08). An input error was detected. Program stopped.
I'd be grateful if you can provide the correct vtk file for td_example_2 i or how to avoid this problem.