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

Function TEST_F

tests/src/IO/PLYParserTest.h:19–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17};
18
19TEST_F(PLYParserTest, ParseCube) {
20 std::string mesh_file = m_data_dir + "cube.ply";
21 parse(mesh_file);
22 ASSERT_EQ(8, m_parser->num_vertices());
23 ASSERT_EQ(12, m_parser->num_faces());
24 ASSERT_EQ(0, m_parser->num_voxels());
25 ASSERT_EQ(0, m_parser->vertex_per_voxel());
26 ASSERT_EQ(3, m_parser->vertex_per_face());
27 ASSERT_EQ(3, m_parser->dim());
28}
29
30TEST_F(PLYParserTest, CubeCentroid) {
31 std::string mesh_file = m_data_dir + "cube.ply";

Callers

nothing calls this directly

Calls 7

num_verticesMethod · 0.45
num_facesMethod · 0.45
num_voxelsMethod · 0.45
vertex_per_voxelMethod · 0.45
vertex_per_faceMethod · 0.45
dimMethod · 0.45
export_verticesMethod · 0.45

Tested by

no test coverage detected