Skip to content

Commit

Permalink
reverting
Browse files Browse the repository at this point in the history
  • Loading branch information
sgsellan committed Jun 13, 2024
1 parent eeb29c3 commit 24372a6
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions test/test_lazy_cage.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,27 @@ def test_bunny(self):
# Generate many examples
for m in np.linspace(20,2000,10,dtype=int):
# print(m)
print("Calling lazy_cage with m = ", m)
# print("Calling lazy_cage with m = ", m)
u,g = gpytoolbox.copyleft.lazy_cage(v,f,num_faces=m,max_iter=10)
print("Finished lazy_cage with m = ", m)
# print("Finished lazy_cage with m = ", m)
# u,g fully contains v,f, i.e. they don't intersect
print("Checking if u,g fully contains v,f")
# print("Checking if u,g fully contains v,f")
b, _ = gpytoolbox.copyleft.do_meshes_intersect(v,f,u,g)
print("Finished checking if u,g fully contains v,f")
# print("Finished checking if u,g fully contains v,f")
self.assertFalse(b)
def test_armadillo(self):
v,f = gpytoolbox.read_mesh("test/unit_tests_data/armadillo.obj")
# print(v)
# Generate many examples
for m in np.linspace(1000,2000,5,dtype=int):
# print(m)
print("Calling lazy_cage with m = ", m)
# print("Calling lazy_cage with m = ", m)
u,g = gpytoolbox.copyleft.lazy_cage(v,f,num_faces=m,max_iter=10)
print("Finished lazy_cage with m = ", m)
# print("Finished lazy_cage with m = ", m)
# u,g fully contains v,f, i.e. they don't intersect
print("Checking if u,g fully contains v,f")
# print("Checking if u,g fully contains v,f")
b, _ = gpytoolbox.copyleft.do_meshes_intersect(v,f,u,g)
print("Finished checking if u,g fully contains v,f")
# print("Finished checking if u,g fully contains v,f")
self.assertFalse(b)

if __name__ == '__main__':
Expand Down

0 comments on commit 24372a6

Please sign in to comment.