summaryrefslogtreecommitdiff
path: root/test/test-geoData.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2024-12-01 18:24:46 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2024-12-01 18:25:05 +0000
commite1de47a129f4a20c25f768eae3ca7c6dcc9c4a73 (patch)
tree12ef63cba30d47bd4229299a09ae97f16939ad82 /test/test-geoData.cpp
parentMerge branch 'terrain-deform-2' (diff)
parentRemove extrusion extents that rounded to the same vertex (diff)
downloadilt-e1de47a129f4a20c25f768eae3ca7c6dcc9c4a73.tar.bz2
ilt-e1de47a129f4a20c25f768eae3ca7c6dcc9c4a73.tar.xz
ilt-e1de47a129f4a20c25f768eae3ca7c6dcc9c4a73.zip
Psycho-rebased branch terrain-for-networks on top of main
Diffstat (limited to 'test/test-geoData.cpp')
-rw-r--r--test/test-geoData.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/test-geoData.cpp b/test/test-geoData.cpp
index bd1ff87..5411b61 100644
--- a/test/test-geoData.cpp
+++ b/test/test-geoData.cpp
@@ -277,3 +277,15 @@ BOOST_DATA_TEST_CASE(deform, loadFixtureJson<DeformTerrainData>("geoData/deform/
Texture::save(tro.outImage, cam.second.c_str());
});
}
+
+BOOST_DATA_TEST_CASE(
+ deformMulti, loadFixtureJson<std::vector<std::vector<GlobalPosition3D>>>("geoData/deform/multi1.json"), points)
+{
+ BOOST_REQUIRE(!points.empty());
+ Surface surface;
+ auto gd = std::make_shared<GeoData>(GeoData::createFlat({0, 0}, {1000000, 1000000}, 100));
+ for (const auto & strip : points) {
+ BOOST_REQUIRE_GE(strip.size(), 3);
+ BOOST_CHECK_NO_THROW(gd->setHeights(strip, {.surface = surface}));
+ }
+}