MCPcopy Create free account
hub / github.com/PyMesh/PyMesh / TEST_F

Function TEST_F

tests/tools/Boolean/CGAL/CGALBooleanEngineTest.h:137–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

135};
136
137TEST_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
152TEST_F(CGALBooleanEngineTest, disjoint_intersection) {
153 MeshPtr mesh = load_mesh("cube.obj");

Callers

nothing calls this directly

Calls 13

load_meshFunction · 0.85
extract_verticesFunction · 0.85
extract_facesFunction · 0.85
set_mesh_1Method · 0.80
set_mesh_2Method · 0.80
compute_unionMethod · 0.45
get_verticesMethod · 0.45
get_facesMethod · 0.45
get_num_verticesMethod · 0.45
get_num_facesMethod · 0.45
compute_intersectionMethod · 0.45
compute_differenceMethod · 0.45

Tested by

no test coverage detected