Skip to content

Commit

Permalink
qDebug -> QgsMessageLog
Browse files Browse the repository at this point in the history
  • Loading branch information
wonder-sk committed Nov 27, 2017
1 parent 7bce7ea commit 721551f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/3d/qgstessellator.cpp
Expand Up @@ -17,6 +17,7 @@

#include "qgscurve.h"
#include "qgsgeometry.h"
#include "qgsmessagelog.h"
#include "qgsmultipolygon.h"
#include "qgspoint.h"
#include "qgspolygon.h"
Expand Down Expand Up @@ -301,7 +302,7 @@ void QgsTessellator::addPolygon( const QgsPolygon &polygon, float extrusionHeigh
{
// Failed to fix that. It could be a really tiny geometry... or maybe they gave us
// geometry in unprojected lat/lon coordinates
qDebug() << "geometry's coordinates are too close to each other and simplification failed - skipping";
QgsMessageLog::logMessage( "geometry's coordinates are too close to each other and simplification failed - skipping", "3D" );
}
else
{
Expand All @@ -313,7 +314,7 @@ void QgsTessellator::addPolygon( const QgsPolygon &polygon, float extrusionHeigh
if ( !_check_intersecting_rings( polygon ) )
{
// skip the polygon - it would cause a crash inside poly2tri library
qDebug() << "polygon rings intersect each other - skipping";
QgsMessageLog::logMessage( "polygon rings intersect each other - skipping", "3D" );
return;
}

Expand Down Expand Up @@ -423,7 +424,7 @@ void QgsTessellator::addPolygon( const QgsPolygon &polygon, float extrusionHeigh
}
catch ( ... )
{
qDebug() << "Triangulation failed. Skipping polygon...";
QgsMessageLog::logMessage( "Triangulation failed. Skipping polygon...", "3D" );
}

delete cdt;
Expand Down

0 comments on commit 721551f

Please sign in to comment.