Skip to content

Commit

Permalink
Fix shape opt test
Browse files Browse the repository at this point in the history
  • Loading branch information
zfergus committed Jan 26, 2023
1 parent d1545d9 commit 67c3d8c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_ipc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,8 @@ TEST_CASE("Test IPC shape derivative", "[ipc][shape_opt]")

CollisionMesh mesh =
CollisionMesh::build_from_full_mesh(X, E, /*faces=*/Eigen::MatrixXi());
mesh.init_area_jacobians();
REQUIRE(mesh.are_area_jacobians_initialized());

X = mesh.vertices(X);
V = mesh.vertices(V);
Expand Down Expand Up @@ -285,6 +287,8 @@ TEST_CASE("Benchmark IPC shape derivative", "[ipc][shape_opt][!benchmark]")

CollisionMesh mesh =
CollisionMesh::build_from_full_mesh(X, E, /*faces=*/Eigen::MatrixXi());
mesh.init_area_jacobians();
REQUIRE(mesh.are_area_jacobians_initialized());

X = mesh.vertices(X);
V = mesh.vertices(V);
Expand Down

0 comments on commit 67c3d8c

Please sign in to comment.