Skip to content

Commit 67c3d8c

Browse files
committed
Fix shape opt test
1 parent d1545d9 commit 67c3d8c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/test_ipc.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,8 @@ TEST_CASE("Test IPC shape derivative", "[ipc][shape_opt]")
226226

227227
CollisionMesh mesh =
228228
CollisionMesh::build_from_full_mesh(X, E, /*faces=*/Eigen::MatrixXi());
229+
mesh.init_area_jacobians();
230+
REQUIRE(mesh.are_area_jacobians_initialized());
229231

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

286288
CollisionMesh mesh =
287289
CollisionMesh::build_from_full_mesh(X, E, /*faces=*/Eigen::MatrixXi());
290+
mesh.init_area_jacobians();
291+
REQUIRE(mesh.are_area_jacobians_initialized());
288292

289293
X = mesh.vertices(X);
290294
V = mesh.vertices(V);

0 commit comments

Comments
 (0)