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

Function TEST_F

tests/tools/Boolean/IGL/IGLEngineTest.h:130–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128};
129
130TEST_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
145TEST_F(IGLEngineTest, disjoint_intersection) {
146 MeshPtr mesh = load_mesh("cube.obj");

Callers

nothing calls this directly

Calls 15

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