| 135 | }; |
| 136 | |
| 137 | TEST_F(CGALBooleanEngineTest, disjoint_union) { |
| 138 | MeshPtr mesh = load_mesh("cube.obj"); |
| 139 | |
| 140 | BooleanPtr cgal_engine = get_disjoint_setting(mesh); |
| 141 | cgal_engine->compute_union(); |
| 142 | |
| 143 | const MatrixFr& vertices = cgal_engine->get_vertices(); |
| 144 | const MatrixIr& faces = cgal_engine->get_faces(); |
| 145 | |
| 146 | const size_t num_vertices = mesh->get_num_vertices(); |
| 147 | const size_t num_faces = mesh->get_num_faces(); |
| 148 | ASSERT_EQ(num_vertices * 2, vertices.rows()); |
| 149 | ASSERT_EQ(num_faces * 2, faces.rows()); |
| 150 | } |
| 151 | |
| 152 | TEST_F(CGALBooleanEngineTest, disjoint_intersection) { |
| 153 | MeshPtr mesh = load_mesh("cube.obj"); |
nothing calls this directly
no test coverage detected