@@ -551,6 +551,12 @@ def test_boundary_loop(self):
551551 self .assertEqual (l .dtype , self .f .dtype )
552552 self .assertTrue (l .flags .c_contiguous )
553553
554+ def test_all_boundary_loop (self ):
555+ l = igl .all_boundary_loop (self .f )
556+ self .assertEqual (type (l ), type ([]))
557+ self .assertTrue (len (l ) > 0 )
558+
559+
554560 def test_bounding_box_diagonal (self ):
555561 length = igl .bounding_box_diagonal (self .v1 )
556562 self .assertEqual (type (length ), float )
@@ -2253,7 +2259,7 @@ def sphere1(point):
22532259 self .assertTrue (ci .flags .c_contiguous )
22542260 self .assertTrue (ci .dtype == np .int )
22552261 self .assertTrue (ci .shape [1 ] == 8 )
2256-
2262+
22572263 def test_topological_hole_fill (self ):
22582264 f = self .f1
22592265 b = np .array (range (10 ))
@@ -2278,9 +2284,9 @@ def test_unproject_on_line(self):
22782284 eye = np .eye (4 )
22792285 viewport = np .array ([0. , 0. , 100. , 100. ])
22802286 p = np .array ([15.0 , 20.0 , 13.0 ])
2281- d = np .array ([0.1 , 0.2 , 1.0 ])
2287+ d = np .array ([0.1 , 0.2 , 1.0 ])
22822288 t , z = igl .unproject_on_line (pos , eye , viewport , p , d )
2283-
2289+
22842290 self .assertTrue (z .flags .c_contiguous )
22852291 self .assertTrue (z .shape == (3 , ))
22862292 self .assertTrue (z .dtype == np .float )
@@ -2291,18 +2297,18 @@ def test_unproject_on_plane(self):
22912297 viewport = np .array ([0. , 0. , 100. , 100. ])
22922298 p = np .array ([1.0 , 2.0 , 3.0 , 2.0 ])
22932299 z = igl .unproject_on_plane (pos , eye , viewport , p )
2294-
2300+
22952301 self .assertTrue (z .flags .c_contiguous )
22962302 self .assertTrue (z .shape == (3 , ))
22972303 self .assertTrue (z .dtype == np .float )
22982304
2299- def test_fast_winding_number_for_points (self ):
2305+ def test_fast_winding_number_for_points (self ):
23002306 xs = np .linspace (- 5.0 , 5.0 , 10 )
23012307 grid = np .meshgrid (xs , xs , xs , indexing = 'ij' )
23022308 grid = np .stack (grid ).reshape (3 , - 1 , order = 'F' ).T
23032309 n = igl .per_vertex_normals (self .v1 , self .f1 )
23042310 a = np .ones ((n .shape [0 ], )) / n .shape [0 ]
2305-
2311+
23062312 wn = igl .fast_winding_number_for_points (self .v1 , n , a , grid )
23072313 self .assertTrue (wn .flags .c_contiguous )
23082314 self .assertTrue (wn .shape == (grid .shape [0 ], ))
@@ -2312,7 +2318,7 @@ def test_fast_winding_number_for_meshes(self):
23122318 xs = np .linspace (- 5.0 , 5.0 , 10 )
23132319 grid = np .meshgrid (xs , xs , xs , indexing = 'ij' )
23142320 grid = np .stack (grid ).reshape (3 , - 1 , order = 'F' ).T
2315-
2321+
23162322 wn = igl .fast_winding_number_for_meshes (self .v1 , self .f1 , grid )
23172323 self .assertTrue (wn .flags .c_contiguous )
23182324 self .assertTrue (wn .shape == (grid .shape [0 ], ))
0 commit comments