| 8 | }; |
| 9 | |
| 10 | TEST_F(NonmanifoldTest, cube) { |
| 11 | Mesh::Ptr mesh = load_mesh("cube.obj"); |
| 12 | const auto faces = MatrixUtils::reshape<MatrixIr>( |
| 13 | mesh->get_faces(), |
| 14 | mesh->get_num_faces(), |
| 15 | mesh->get_vertex_per_face()); |
| 16 | const auto is_v_manifold = ManifoldCheck::is_vertex_manifold(faces); |
| 17 | const auto is_e_manifold = ManifoldCheck::is_edge_manifold(faces); |
| 18 | ASSERT_TRUE((is_v_manifold.array() == 1).all()); |
| 19 | ASSERT_TRUE((is_e_manifold.array() == 1).all()); |
| 20 | } |
| 21 | |
| 22 | TEST_F(NonmanifoldTest, butterfly) { |
| 23 | MatrixIr faces(2, 3); |
nothing calls this directly
no test coverage detected