| 99 | } |
| 100 | |
| 101 | TEST_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 | |
| 109 | TEST_F(PointLocatorTest, SlightlyOutside) { |
| 110 | MeshPtr mesh = load_mesh("cube.msh"); |
no test coverage detected