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

Function TEST_F

tests/tools/Boolean/CGAL/CGALCorefinementEngineTest.h:138–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 8

load_meshFunction · 0.85
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