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

Function TEST_F

tests/tools/MeshUtils/PointLocatorTest.h:101–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99}
100
101TEST_F(PointLocatorTest, Outside) {
102 MeshPtr mesh = load_mesh("tet.msh");
103 PointLocator locator(mesh);
104 MatrixF pts = uniform_samples(5, -1*VectorF::Ones(3), VectorF::Ones(3));
105
106 ASSERT_THROW(locator.locate(pts), RuntimeError);
107}
108
109TEST_F(PointLocatorTest, SlightlyOutside) {
110 MeshPtr mesh = load_mesh("cube.msh");

Callers 1

PointLocatorTest.hFile · 0.70

Calls 11

load_meshFunction · 0.85
locateMethod · 0.80
get_enclosing_voxelsMethod · 0.80
get_voxelMethod · 0.80
sizeMethod · 0.45
add_attributeMethod · 0.45
get_attributeMethod · 0.45
get_num_facesMethod · 0.45
get_verticesMethod · 0.45
get_num_verticesMethod · 0.45

Tested by

no test coverage detected