Skip to content

Commit

Permalink
made test_sdf_flow more verbose
Browse files Browse the repository at this point in the history
  • Loading branch information
odedstein committed Oct 19, 2023
1 parent f409b40 commit 71e3ef7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/test_sdf_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from .context import unittest


class TestRFTS(unittest.TestCase):
class TestSDFFlow(unittest.TestCase):
def test_beat_marching_cubes_low_res(self):
meshes = ["bunny_oded.obj", "spot.obj", "teddy.obj"]
ns = [10, 20, 30]
Expand All @@ -22,6 +22,8 @@ def test_beat_marching_cubes_low_res(self):
V0, F0 = gpy.icosphere(2)
U,G = gpy.sdf_flow(GV, sdf, V0, F0, verbose=False, visualize=False, min_h = np.clip(1.5/n, 0.001, 0.1))
h_ours = gpy.approximate_hausdorff_distance(U, G.astype(np.int32), v, f.astype(np.int32), use_cpp = True)

print(f"sdf_flow h: {h_ours}, MC h: {h_mc} for {mesh} with n={n}")
self.assertTrue(h_ours < h_mc)

def test_noop(self):
Expand Down

0 comments on commit 71e3ef7

Please sign in to comment.