Skip to content

Commit b883f8d

Browse files
committed
Test plots removed
1 parent ff8ae0b commit b883f8d

File tree

4 files changed

+3
-14
lines changed

4 files changed

+3
-14
lines changed

test_modules/test_actions.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,10 @@ def test_collapse(self):
6666
n11 = Node(cmap, 2)
6767
split_edge(cmap, n00, n11)
6868
n5 = Node(cmap, 4)
69-
plot_mesh(cmap)
7069
collapse_edge(cmap, n00, n5)
7170
d1_to_test = Dart(cmap, 7)
7271
d2_to_test = Dart(cmap, 0)
73-
plot_mesh(cmap)
72+
#plot_mesh(cmap)
7473
self.assertEqual(collapse_edge(cmap, n00, n5), False)
7574

7675
def test_split_collapse_split(self):
@@ -95,13 +94,11 @@ def test_split_collapse_split(self):
9594
split_edge(cmap, n4, n3)
9695
split_edge(cmap, n4, n1)
9796
split_edge(cmap, n5, n1)
98-
plot_mesh(cmap)
9997
n7 = Node(cmap, 7)
10098
n8 = Node(cmap, 8)
10199
collapse_edge(cmap, n7, n8)
102-
plot_mesh(cmap)
103100
collapse_edge(cmap, n5, n7)
104-
plot_mesh(cmap)
101+
#plot_mesh(cmap)
105102

106103

107104

test_modules/test_mesh_analysis.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
from mesh_model.mesh_struct.mesh_elements import Dart
55
import mesh_model.mesh_analysis as Mesh_analysis
66
from actions.triangular_actions import split_edge_ids
7-
from plots.mesh_plotter import plot_mesh
8-
97

108
class TestMeshAnalysis(unittest.TestCase):
119

@@ -38,13 +36,9 @@ def test_split_score(self):
3836
nodes = [[0.0, 0.0], [1.0, 0.0], [1.0, 1.0], [0.0, 1.0], [2.0, 0.0]]
3937
faces = [[0, 1, 2], [0, 2, 3], [1, 4, 2]]
4038
cmap = Mesh(nodes, faces)
41-
plot_mesh(cmap)
4239
split_edge_ids(cmap, 0, 2)
43-
plot_mesh(cmap)
4440
split_edge_ids(cmap, 1, 2) # split impossible
45-
plot_mesh(cmap)
4641
nodes_score, mesh_score, mesh_ideal_score = Mesh_analysis.global_score(cmap)
47-
plot_mesh(cmap)
4842
self.assertEqual((3, 1), (mesh_score, mesh_ideal_score))
4943

5044
def test_find_template_opposite_node_not_found(self):

test_modules/test_random_trimesh.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def test_random_flip_mesh(self):
3131
def test_mesh_suffle(self):
3232
m = regular_mesh(15)
3333
mesh = mesh_shuffle(m, 15)
34-
plot_mesh(mesh)
34+
#plot_mesh(mesh)
3535

3636

3737

test_modules/test_reader.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44

55
import os
66

7-
from plots.mesh_plotter import plot_mesh
8-
97
TESTFILE_FOLDER = os.path.join(os.path.dirname(__file__), '../mesh_files/')
108

119
class TestReader(unittest.TestCase):

0 commit comments

Comments
 (0)