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

Function TEST_F

tests/tools/MeshUtils/DuplicatedVertexRemovalTest.h:126–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124}
125
126TEST_F(DuplicatedVertexRemovalTest, very_close_points) {
127 const Float tol = 1.0 - 1e-6;
128 MatrixF vertices(3, 2);
129 vertices << 0.0, 0.0,
130 1.0, 0.0,
131 0.5, 0.5 * sqrt(3);
132 MatrixI faces(1, 3);
133 faces << 0, 1, 2;
134
135 DuplicatedVertexRemoval remover(vertices, faces);
136 remover.run(tol);
137
138 MatrixFr result_vertices = remover.get_vertices();
139 MatrixIr result_faces = remover.get_faces();
140 VectorI index_map = remover.get_index_map();
141
142 ASSERT_EQ(3, result_vertices.rows());
143}
144
145TEST_F(DuplicatedVertexRemovalTest, not_close_enough_points) {
146 const Float tol = 1.0 + 1e-6;

Callers 1

Calls 6

set_importance_levelMethod · 0.80
normMethod · 0.80
runMethod · 0.45
get_verticesMethod · 0.45
get_facesMethod · 0.45
get_index_mapMethod · 0.45

Tested by

no test coverage detected