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

Function TEST_F

tests/tools/MeshUtils/FinFaceRemovalTest.h:23–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21};
22
23TEST_F(FinFaceRemovalTest, zero_fin) {
24 MatrixF vertices(4, 3);
25 vertices << 0.0, 0.0, 0.0,
26 1.0, 0.0, 0.0,
27 0.0, 1.0, 0.0,
28 1.0, 1.0, 0.0;
29 MatrixI faces(2, 3);
30 faces << 0, 1, 2,
31 2, 1, 3;
32
33 FinFaceRemoval remover(vertices, faces);
34 remover.run();
35
36 MatrixFr result_vertices = remover.get_vertices();
37 MatrixIr result_faces = remover.get_faces();
38 VectorI face_indices = remover.get_face_indices();
39
40 ASSERT_EQ(2, result_faces.rows());
41 ASSERT_EQ(2, face_indices.rows());
42 ASSERT_FLOAT_EQ(0.0, (vertices - result_vertices).norm());
43 ASSERT_FLOAT_EQ(0.0, (faces - result_faces).norm());
44 check_face_index(faces, result_faces, face_indices);
45}
46
47TEST_F(FinFaceRemovalTest, one_fin) {
48 MatrixF vertices(4, 3);

Callers

nothing calls this directly

Calls 5

normMethod · 0.80
runMethod · 0.45
get_verticesMethod · 0.45
get_facesMethod · 0.45
get_face_indicesMethod · 0.45

Tested by

no test coverage detected