File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed
Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 22from model .mesh_struct .mesh import Mesh
33from mesh_display import MeshDisplay
44import model .random_trimesh as TM
5- import model .reader as Reader
5+ # import model.reader as Reader
66
77import sys
88import json
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ def read_medit(filename: string) -> Mesh:
2121 if "Vertices" == line .strip ():
2222 line = f .readline ()
2323 nb_vertices = line .strip ()
24- for n in range (int (nb_vertices )):
24+ for _ in range (int (nb_vertices )):
2525 line = f .readline ()
2626 ls = line .split ()
2727 x = float (ls [0 ])
@@ -30,7 +30,7 @@ def read_medit(filename: string) -> Mesh:
3030 if "Triangles" == line .strip ():
3131 line = f .readline ()
3232 nb_faces = line .strip ()
33- for e in range (int (nb_faces )):
33+ for _ in range (int (nb_faces )):
3434 line = f .readline ()
3535 ls = line .split ()
3636 n0 = int (ls [0 ])
@@ -63,14 +63,14 @@ def read_gmsh(filename: string) -> Mesh:
6363 line = f .readline ()
6464 ls = line .split ()
6565 nb_blocs = int (ls [0 ])
66- for b in range (nb_blocs ):
66+ for _ in range (nb_blocs ):
6767 line = f .readline ()
6868 ls = line .split ()
6969 nb_nodes_b = int (ls [3 ])
7070 # skip the tags
71- for n in range (nb_nodes_b ):
71+ for _ in range (nb_nodes_b ):
7272 line = f .readline ()
73- for n in range (nb_nodes_b ):
73+ for _ in range (nb_nodes_b ):
7474 line = f .readline ()
7575 ls = line .split ()
7676 x = float (ls [0 ])
@@ -82,12 +82,12 @@ def read_gmsh(filename: string) -> Mesh:
8282 line = f .readline ()
8383 ls = line .split ()
8484 nb_blocs = int (ls [0 ])
85- for b in range (nb_blocs ):
85+ for _ in range (nb_blocs ):
8686 line = f .readline ()
8787 ls = line .split ()
8888 elem_type = int (ls [2 ])
8989 nb_elems_b = int (ls [3 ])
90- for e in range (nb_elems_b ):
90+ for _ in range (nb_elems_b ):
9191 line = f .readline ()
9292 ls = line .split ()
9393 if elem_type == 2 :
You can’t perform that action at this time.
0 commit comments