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

Function TEST_F

tests/tools/MeshUtils/ManifoldCheckTest.h:10–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8};
9
10TEST_F(NonmanifoldTest, cube) {
11 Mesh::Ptr mesh = load_mesh("cube.obj");
12 const auto faces = MatrixUtils::reshape<MatrixIr>(
13 mesh->get_faces(),
14 mesh->get_num_faces(),
15 mesh->get_vertex_per_face());
16 const auto is_v_manifold = ManifoldCheck::is_vertex_manifold(faces);
17 const auto is_e_manifold = ManifoldCheck::is_edge_manifold(faces);
18 ASSERT_TRUE((is_v_manifold.array() == 1).all());
19 ASSERT_TRUE((is_e_manifold.array() == 1).all());
20}
21
22TEST_F(NonmanifoldTest, butterfly) {
23 MatrixIr faces(2, 3);

Callers

nothing calls this directly

Calls 9

load_meshFunction · 0.85
is_vertex_manifoldFunction · 0.85
is_edge_manifoldFunction · 0.85
cut_to_manifoldFunction · 0.85
get_facesMethod · 0.45
get_num_facesMethod · 0.45
get_vertex_per_faceMethod · 0.45
sizeMethod · 0.45
get_num_verticesMethod · 0.45

Tested by

no test coverage detected