diff --git a/Applications/Utils/GeoTools/TriangulatePolyline.cpp b/Applications/Utils/GeoTools/TriangulatePolyline.cpp index e61a8b55fd60058ed752b81dae08733383ddc70b..824b4cfec6c439f807150c5da37706b4d524f87d 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 1436dd1e5d8dd2315642a2233a14b2772f796b26..56688a179abd82f2fe11c1dab7b14994ff6e4456 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; } }