From ce33e47bd51aff0442420c64df9076b545cd536b Mon Sep 17 00:00:00 2001 From: rahv <karsten.rink@ufz.de> Date: Wed, 4 Feb 2015 11:58:13 +0100 Subject: [PATCH] modified message output --- Applications/Utils/GeoTools/TriangulatePolyline.cpp | 5 ++++- GeoLib/Polyline.cpp | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Applications/Utils/GeoTools/TriangulatePolyline.cpp b/Applications/Utils/GeoTools/TriangulatePolyline.cpp index e61a8b55fd6..824b4cfec6c 100644 --- a/Applications/Utils/GeoTools/TriangulatePolyline.cpp +++ b/Applications/Utils/GeoTools/TriangulatePolyline.cpp @@ -72,13 +72,16 @@ int main(int argc, char *argv[]) // check if line exists if (line == nullptr) { - ERR ("No polyline found with name \"%s\"", polyline_name.c_str()); + ERR ("No polyline found with name \"%s\". Aborting...", polyline_name.c_str()); return 1; } // check if polyline can be triangulated (i.e. closed + coplanar) if (!line->isCoplanar()) + { + ERR ("Polyline is not coplanar, no unambiguous triangulation possible. Aborting..."); return 1; + } if (!line->isClosed()) { diff --git a/GeoLib/Polyline.cpp b/GeoLib/Polyline.cpp index 1436dd1e5d8..56688a179ab 100644 --- a/GeoLib/Polyline.cpp +++ b/GeoLib/Polyline.cpp @@ -206,7 +206,7 @@ bool Polyline::isCoplanar() const { if (!GeoLib::isCoplanar(p0, p1, p2, *this->getPoint(i))) { - ERR ("Point %d is not coplanar to the first three points of the line.", i); + DBUG ("Point %d is not coplanar to the first three points of the line.", i); return false; } } -- GitLab