def test_simplify_qem(self, filename): filename = os.path.join(CWD, model_dir, filename) mesh = tm.Mesh(filename) tm.hole_fill(mesh) try: tm.simplify_qem(mesh, mesh.num_faces() // 10) except Exception: self.fail('Failed!')
def test_remesh_triangular(self, filename): filename = os.path.join(CWD, model_dir, filename) mesh = tm.Mesh(filename) tm.hole_fill(mesh) try: tm.remesh_triangular(mesh) except Exception: self.fail('Failed!')
def test_denoise_l0_smooth(self, filename): filename = os.path.join(CWD, model_dir, filename) mesh = tm.Mesh(filename) tm.hole_fill(mesh) try: tm.denoise_l0_smooth(mesh) except Exception: self.fail('Failed!')
def test_implicit_fairing(self, filename): filename = os.path.join(CWD, model_dir, filename) mesh = tm.Mesh(filename) tm.hole_fill(mesh) try: tm.implicit_fairing(mesh) except Exception: self.fail('Failed!')
def test_smooth_laplacian(self, filename): filename = os.path.join(CWD, model_dir, filename) mesh = tm.Mesh(filename) tm.hole_fill(mesh) try: tm.smooth_laplacian(mesh) except Exception: self.fail('Failed!')
def test_hole_fill(self, filename): filename = os.path.join(CWD, model_dir, filename) mesh = tm.Mesh(filename) try: tm.hole_fill(mesh) except Exception: self.fail('Failed!') self.assertTrue(mesh.verify())