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

Function TEST_F

tests/src/Attributes/VoxelVolumeAttributeTest.h:15–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13};
14
15TEST_F(VoxelVolumeAttributeTest, Positivity) {
16 MeshPtr cube_tet = load_mesh("cube.msh");
17 ASSERT_TRUE(cube_tet->has_attribute("voxel_volume"));
18 VectorF cube_voxel_volumes = cube_tet->get_attribute("voxel_volume");
19 ASSERT_EQ(cube_tet->get_num_voxels(), cube_voxel_volumes.size());
20 ASSERT_GT(cube_voxel_volumes.size(), 0.0);
21 ASSERT_GT(cube_voxel_volumes.minCoeff(), 0.0);
22}
23
24TEST_F(VoxelVolumeAttributeTest, Recomputation) {
25 MeshPtr cube_tet = load_mesh("cube.msh");

Callers

nothing calls this directly

Calls 7

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

Tested by

no test coverage detected