| 115 | }; |
| 116 | |
| 117 | TEST_F(ClipperEngineTest, disjoint_union) { |
| 118 | MeshPtr mesh = load_mesh("square_2D.obj"); |
| 119 | |
| 120 | BooleanPtr clipper_engine = get_disjoint_setting(mesh); |
| 121 | clipper_engine->compute_union(); |
| 122 | |
| 123 | const MatrixFr& vertices = clipper_engine->get_vertices(); |
| 124 | const MatrixIr& faces = clipper_engine->get_faces(); |
| 125 | |
| 126 | const size_t num_vertices = mesh->get_num_vertices(); |
| 127 | const size_t num_faces = mesh->get_num_faces(); |
| 128 | ASSERT_EQ(num_vertices * 2, vertices.rows()); |
| 129 | ASSERT_EQ(num_faces * 2, faces.rows()); |
| 130 | } |
| 131 | |
| 132 | TEST_F(ClipperEngineTest, disjoint_intersection) { |
| 133 | MeshPtr mesh = load_mesh("square_2D.obj"); |
nothing calls this directly
no test coverage detected