Skip to content
Snippets Groups Projects
Commit ce33e47b authored by Karsten Rink's avatar Karsten Rink
Browse files

modified message output

parent 83fca727
No related branches found
No related tags found
No related merge requests found
...@@ -72,13 +72,16 @@ int main(int argc, char *argv[]) ...@@ -72,13 +72,16 @@ int main(int argc, char *argv[])
// check if line exists // check if line exists
if (line == nullptr) 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; return 1;
} }
// check if polyline can be triangulated (i.e. closed + coplanar) // check if polyline can be triangulated (i.e. closed + coplanar)
if (!line->isCoplanar()) if (!line->isCoplanar())
{
ERR ("Polyline is not coplanar, no unambiguous triangulation possible. Aborting...");
return 1; return 1;
}
if (!line->isClosed()) if (!line->isClosed())
{ {
......
...@@ -206,7 +206,7 @@ bool Polyline::isCoplanar() const ...@@ -206,7 +206,7 @@ bool Polyline::isCoplanar() const
{ {
if (!GeoLib::isCoplanar(p0, p1, p2, *this->getPoint(i))) 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; return false;
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment