diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-11-04 17:07:58 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-11-04 19:09:26 +0000 |
commit | 5ed36466b48aa347277c70422eb00bee264a5c8b (patch) | |
tree | 313c4cde1ee4fe27a006815c858fd9bad88a876b /test | |
parent | Rename TerrainMesh to GeoData to drop inplace (diff) | |
download | ilt-5ed36466b48aa347277c70422eb00bee264a5c8b.tar.bz2 ilt-5ed36466b48aa347277c70422eb00bee264a5c8b.tar.xz ilt-5ed36466b48aa347277c70422eb00bee264a5c8b.zip |
Simplify some logic with the triangle construct
Diffstat (limited to 'test')
-rw-r--r-- | test/test-geoData.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/test-geoData.cpp b/test/test-geoData.cpp index d79f5b8..b33c61e 100644 --- a/test/test-geoData.cpp +++ b/test/test-geoData.cpp @@ -37,9 +37,8 @@ BOOST_AUTO_TEST_CASE(normalsAllPointUp) BOOST_AUTO_TEST_CASE(trianglesContainsPoints) { const auto face = face_handle(0); - auto vertices = cfv_iter(face); - BOOST_TEST_CONTEXT(point(*vertices++) << point(*vertices++) << point(*vertices++)) { + BOOST_TEST_CONTEXT(GeoData::Triangle<2>(this, fv_range(face))) { BOOST_CHECK(triangleContainsPoint(glm::vec2 {xllcorner, yllcorner}, face)); BOOST_CHECK(triangleContainsPoint(glm::vec2 {xllcorner + cellsize, yllcorner + cellsize}, face)); BOOST_CHECK(triangleContainsPoint(glm::vec2 {xllcorner, yllcorner + cellsize}, face)); |