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

Function TEST_F

tests/tools/Boolean/Clipper/ClipperEngineTest.h:117–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115};
116
117TEST_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
132TEST_F(ClipperEngineTest, disjoint_intersection) {
133 MeshPtr mesh = load_mesh("square_2D.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