Exemplo n.º 1
0
    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!')
Exemplo n.º 2
0
    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!')
Exemplo n.º 3
0
    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!')
Exemplo n.º 4
0
    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!')
Exemplo n.º 5
0
    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!')
Exemplo n.º 6
0
    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())