@@ -45,10 +45,14 @@ def setUp(self):
4545 #self.t = np.random.rand(10, 4)
4646 #self.f = np.random.randint(0, 10, size=(20, 3), dtype=self.f1.dtype)
4747 #self.g = np.random.randint(0, 10, size=(20, 4), dtype="int32")
48- self .v , self .t , self .f = igl .read_mesh (os .path .join (self .test_data_path , "decimated-knight.mesh" ))
4948 # This model is a quad mesh that's been trivially triangulated
5049 self .v3 , self .f3 = igl .read_triangle_mesh (os .path .join (self .test_data_path , "face.obj" ))
50+ self .v4 , self .t4 , self .f4 = igl .read_mesh (os .path .join (self .test_data_path , "decimated-knight.mesh" ))
5151 self .q3 = np .concatenate ((self .f3 [0 ::2 ,0 :3 ], self .f3 [1 ::2 ,2 :3 ]), axis = 1 )
52+ # Use the bunny rather than random junk. Ideally we'd loop over meshes
53+ # by category like the libigl tests.
54+ self .v = self .v1
55+ self .f = self .f1
5256
5357
5458 self .default_int = np .array (range (2 )).dtype
@@ -612,7 +616,7 @@ def test_boundary_loop(self):
612616 self .assertTrue (l .flags .c_contiguous )
613617
614618 def test_all_boundary_loop (self ):
615- l = igl .all_boundary_loop (self .f )
619+ l = igl .all_boundary_loop (self .f3 )
616620 self .assertEqual (type (l ), type ([]))
617621 self .assertTrue (len (l ) > 0 )
618622
0 commit comments