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

Function TEST_F

tests/src/IO/PLYWriterTest.h:13–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11};
12
13TEST_F(PLYWriterTest, EmptyMesh) {
14 MeshPtr m1 = load_mesh("empty.ply");
15 MeshPtr m2 = write_and_load("empty.ply", m1);
16
17 ASSERT_EQ(m1->get_num_vertices(), m2->get_num_vertices());
18 ASSERT_EQ(m1->get_num_faces(), m2->get_num_faces());
19 ASSERT_EQ(m1->get_num_voxels(), m2->get_num_voxels());
20}
21
22TEST_F(PLYWriterTest, SurfaceMesh) {
23 MeshPtr mesh = load_mesh("cube.ply");

Callers 1

PLYWriterTest.hFile · 0.70

Calls 10

load_meshFunction · 0.85
set_output_filenameMethod · 0.80
get_num_verticesMethod · 0.45
get_num_facesMethod · 0.45
get_num_voxelsMethod · 0.45
add_attributeMethod · 0.45
with_attributeMethod · 0.45
write_meshMethod · 0.45
get_dimMethod · 0.45
set_attributeMethod · 0.45

Tested by

no test coverage detected