summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2023-11-26 14:20:28 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2023-11-26 14:20:28 +0000
commit3abe940a22d99939b666bd806214c8b986cb3ed9 (patch)
treebba599f39e8b328c3d4911a940a4263781e74a77 /test
parentMerge branch 'ints' into terrain (diff)
downloadilt-3abe940a22d99939b666bd806214c8b986cb3ed9.tar.bz2
ilt-3abe940a22d99939b666bd806214c8b986cb3ed9.tar.xz
ilt-3abe940a22d99939b666bd806214c8b986cb3ed9.zip
Calculate vertex normals only
Doesn't require half edge normals or face normals, which uses Newell's method, which results in integer overflow... Not to mention we don't need all the other normals.
Diffstat (limited to 'test')
-rw-r--r--test/test-geoData.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/test/test-geoData.cpp b/test/test-geoData.cpp
index 4e85f73..cb0466e 100644
--- a/test/test-geoData.cpp
+++ b/test/test-geoData.cpp
@@ -26,11 +26,6 @@ BOOST_AUTO_TEST_CASE(loadSuccess)
BOOST_AUTO_TEST_CASE(normalsAllPointUp)
{
- BOOST_CHECK_EQUAL(std::count_if(faces_begin(), faces_end(),
- [this](auto && vh) {
- return normal(vh).z > 0;
- }),
- n_faces());
BOOST_CHECK_EQUAL(std::count_if(vertices_begin(), vertices_end(),
[this](auto && vh) {
return normal(vh).z > 0;