From eec68699330318f70a2f62186624c4253a9a4f1a Mon Sep 17 00:00:00 2001 From: vng Date: Thu, 8 Sep 2011 12:29:46 +0300 Subject: [PATCH] Remove triangles orientation checking after tesselation. --- indexer/tesselator.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/indexer/tesselator.cpp b/indexer/tesselator.cpp index a5a8815014..d97f527a81 100644 --- a/indexer/tesselator.cpp +++ b/indexer/tesselator.cpp @@ -256,7 +256,7 @@ namespace tesselator void TrianglesInfo::Add(uintptr_t const * arr) { // When adding triangles, check that they all have identical orientation! - + /* m2::PointD arrP[] = { m_points[arr[0]], m_points[arr[1]], m_points[arr[2]] }; double const cp = m2::robust::OrientedS(arrP[0], arrP[1], arrP[2]); @@ -271,6 +271,9 @@ namespace tesselator m_triangles.back().Add(arr); } + */ + + m_triangles.back().Add(arr); } void TrianglesInfo::GetPointsInfo(m2::PointU const & baseP,