Skip to content
Snippets Groups Projects
Commit 68672666 authored by Tom Fischer's avatar Tom Fischer
Browse files

Using logog logging within class Polyline.

parent 0e6c11f2
No related branches found
No related tags found
No related merge requests found
...@@ -9,7 +9,8 @@ ...@@ -9,7 +9,8 @@
* Created on 2010-06-21 by Thomas Fischer * Created on 2010-06-21 by Thomas Fischer
*/ */
// Base // ThirdParty/logog
#include "logog/include/logog.hpp"
// GeoLib // GeoLib
#include "Polyline.h" #include "Polyline.h"
...@@ -291,18 +292,12 @@ Polyline* Polyline::constructPolylineFromSegments(const std::vector<Polyline*> & ...@@ -291,18 +292,12 @@ Polyline* Polyline::constructPolylineFromSegments(const std::vector<Polyline*> &
} }
} }
else else
std::cout ERR("Error in Polyline::contructPolylineFromSegments() - Line segments use different point vectors.");
<<
"Error in Polyline::contructPolylineFromSegments() - Line segments use different point vectors..."
<< std::endl;
} }
if (!ply_found) if (!ply_found)
{ {
std::cout ERR("Error in Polyline::contructPolylineFromSegments() - Not all segments are connected.");
<<
"Error in Polyline::contructPolylineFromSegments() - Not all segments are connected..."
<< std::endl;
new_ply = NULL; new_ply = NULL;
break; break;
} }
...@@ -330,9 +325,7 @@ Polyline* Polyline::closePolyline(const Polyline& ply) ...@@ -330,9 +325,7 @@ Polyline* Polyline::closePolyline(const Polyline& ply)
new_ply->addPoint(new_ply->getPointID(0)); new_ply->addPoint(new_ply->getPointID(0));
return new_ply; return new_ply;
} }
std::cout << ERR("Error in Polyline::closePolyline() - Input polyline needs to be composed of at least three points.");
"Error in Polyline::closePolyline() - Input polyline needs to be composed of at least three points..."
<< std::endl;
return NULL; return NULL;
} }
...@@ -372,7 +365,7 @@ bool containsEdge (const Polyline& ply, size_t id0, size_t id1) ...@@ -372,7 +365,7 @@ bool containsEdge (const Polyline& ply, size_t id0, size_t id1)
{ {
if (id0 == id1) if (id0 == id1)
{ {
std::cerr << "no valid edge id0 == id1 == " << id0 << std::endl; ERR("no valid edge id0 == id1 == %d.", id0);
return false; return false;
} }
if (id0 > id1) if (id0 > id1)
......
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