@@ -30,6 +30,16 @@ def setUp(self):
3030 self .f = np .random .randint (0 , 10 , size = (20 , 3 ), dtype = self .f1 .dtype )
3131 self .g = np .random .randint (0 , 10 , size = (20 , 4 ), dtype = "int32" )
3232
33+ def tearDown (self ):
34+ vv1 , ff1 = igl .read_triangle_mesh (os .path .join (self .test_path , "bunny_small.off" ))
35+ vv2 , ff2 = igl .read_triangle_mesh (os .path .join (self .test_path , "fertility.off" ))
36+ self .assertTrue ((vv1 == self .v1 ).all ())
37+ self .assertTrue ((ff1 == self .f1 ).all ())
38+
39+ self .assertTrue ((vv2 == self .v2 ).all ())
40+ self .assertTrue ((ff2 == self .f2 ).all ())
41+
42+
3343 def test_z_module (self ):
3444 # Extract all implemented functions from the module
3545 funcs = []
@@ -1616,11 +1626,11 @@ def test_intrinsic_delaunay_triangulation(self):
16161626 self .assertTrue (f .shape [1 ] == 3 )
16171627
16181628 def test_intrinsic_delaunay_triangulation_edges (self ):
1619- el = igl .edge_lengths (self .v , self .f )
1620- l , f , e , u_e , emap , ue2e = igl .intrinsic_delaunay_triangulation_edges (el , self .f )
1621- # self.assertTrue(f.flags.c_contiguous)
1622- # self.assertTrue(f.dtype == self.f.dtype)
1623- # self.assertTrue(f.shape[1] == 3)
1629+ el = igl .edge_lengths (self .v1 , self .f1 )
1630+ l , f , e , u_e , emap , ue2e = igl .intrinsic_delaunay_triangulation_edges (el , self .f1 )
1631+ self .assertTrue (f .flags .c_contiguous )
1632+ self .assertTrue (f .dtype == self .f .dtype )
1633+ self .assertTrue (f .shape [1 ] == 3 )
16241634
16251635 def test_edges_to_path (self ):
16261636 e = igl .edges (self .f1 )
@@ -2214,7 +2224,6 @@ def test_rigid_alignment(self):
22142224 self .assertTrue (r .dtype == t .dtype == self .v1 .dtype )
22152225
22162226 def test_sharp_edges (self ):
2217- # TODO IGL documentation misses second return parameter e, fix in igl
22182227 se , e , ue , emap , ue2e , sharp = igl .sharp_edges (self .v1 , self .f1 , np .pi * 0.11 )
22192228 self .assertTrue (se .shape [1 ] == 2 )
22202229 self .assertTrue (ue .shape [1 ] == 2 )
0 commit comments