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

Function TEST_F

tests/tools/MeshUtils/MeshCutterTest.h:11–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9};
10
11TEST_F(MeshCutterTest, empty) {
12 MeshPtr mesh = load_mesh("empty.ply");
13
14 std::vector<size_t> ids;
15 MeshCutter cutter(mesh);
16 MeshPtr cutted_mesh = cutter.cut_with_face_labels(ids);
17
18 ASSERT_EQ(0, cutted_mesh->get_num_vertices());
19 ASSERT_EQ(0, cutted_mesh->get_num_faces());
20}
21
22TEST_F(MeshCutterTest, SingleTriangle) {
23 VectorF vertices(9);

Callers 1

MeshCutterTest.hFile · 0.70

Calls 15

load_meshFunction · 0.85
cut_with_face_labelsMethod · 0.80
get_faceMethod · 0.80
cut_along_edgesMethod · 0.80
MeshFactoryClass · 0.50
get_num_verticesMethod · 0.45
get_num_facesMethod · 0.45
createMethod · 0.45
load_dataMethod · 0.45
get_verticesMethod · 0.45
get_facesMethod · 0.45

Tested by

no test coverage detected