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

Function TEST_F

tests/tools/Boolean/IGL/IGLCSGTreeTest.h:95–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93};
94
95TEST_F(IGLCSGTreeTest, leaf) {
96 MeshPtr mesh = load_mesh("cube.obj");
97 MatrixFr vertices = extract_vertices(mesh);
98 MatrixIr faces = extract_faces(mesh);
99
100 CSGTree::Ptr tree = CSGTree::create_leaf("igl", vertices, faces);
101
102 const auto r_vertices = tree->get_vertices();
103 const auto r_faces = tree->get_faces();
104
105 ASSERT_EQ(vertices.rows(), r_vertices.rows());
106 ASSERT_EQ(vertices.cols(), r_vertices.cols());
107 ASSERT_FLOAT_EQ(0.0, (vertices - r_vertices).minCoeff());
108 ASSERT_FLOAT_EQ(0.0, (vertices - r_vertices).maxCoeff());
109}
110
111TEST_F(IGLCSGTreeTest, binary_union) {
112 MeshPtr mesh = load_mesh("cube.obj");

Callers

nothing calls this directly

Calls 9

load_meshFunction · 0.85
extract_verticesFunction · 0.85
extract_facesFunction · 0.85
set_operand_1Method · 0.80
set_operand_2Method · 0.80
get_verticesMethod · 0.45
get_facesMethod · 0.45
get_num_verticesMethod · 0.45
compute_unionMethod · 0.45

Tested by

no test coverage detected