| 128 | }; |
| 129 | |
| 130 | TEST_F(IGLEngineTest, disjoint_union) { |
| 131 | MeshPtr mesh = load_mesh("cube.obj"); |
| 132 | |
| 133 | BooleanPtr igl_engine = get_disjoint_setting(mesh); |
| 134 | igl_engine->compute_union(); |
| 135 | |
| 136 | const MatrixFr& vertices = igl_engine->get_vertices(); |
| 137 | const MatrixIr& faces = igl_engine->get_faces(); |
| 138 | |
| 139 | const size_t num_vertices = mesh->get_num_vertices(); |
| 140 | const size_t num_faces = mesh->get_num_faces(); |
| 141 | ASSERT_EQ(num_vertices * 2, vertices.rows()); |
| 142 | ASSERT_EQ(num_faces * 2, faces.rows()); |
| 143 | } |
| 144 | |
| 145 | TEST_F(IGLEngineTest, disjoint_intersection) { |
| 146 | MeshPtr mesh = load_mesh("cube.obj"); |
nothing calls this directly
no test coverage detected