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

Function TEST_F

tests/src/Attributes/VoxelEdgeRatioAttributeTest.h:9–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7};
8
9TEST_F(VoxelEdgeRatioAttributeTest, tet) {
10 MeshPtr mesh = load_mesh("tet.msh");
11 mesh->add_attribute("voxel_edge_ratio");
12 ASSERT_TRUE(mesh->has_attribute("voxel_edge_ratio"));
13 VectorF edge_ratios = mesh->get_attribute("voxel_edge_ratio");
14 ASSERT_EQ(1, edge_ratios.size());
15 ASSERT_NEAR(1.0, edge_ratios[0], 1e-6);
16}

Callers

nothing calls this directly

Calls 5

load_meshFunction · 0.85
add_attributeMethod · 0.45
has_attributeMethod · 0.45
get_attributeMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected