@@ -127,7 +127,7 @@ static QVector3D _calculateNormal( const QgsCurve *curve, bool &hasValidZ )
127127 curve->pointAt ( i, pt1, vt );
128128 curve->pointAt ( i + 1 , pt2, vt );
129129
130- if ( qIsNaN ( pt1.z () ) || qIsNaN ( pt2.z () ) )
130+ if ( std::isnan ( pt1.z () ) || std::isnan ( pt2.z () ) )
131131 continue ;
132132
133133 hasValidZ = true ;
@@ -219,7 +219,7 @@ void QgsTessellator::addPolygon( const QgsPolygonV2 &polygon, float extrusionHei
219219 }
220220
221221 const QgsPoint ptFirst ( exterior->startPoint () );
222- QVector3D pOrigin ( ptFirst.x (), ptFirst.y (), qIsNaN ( ptFirst.z () ) ? 0 : ptFirst.z () );
222+ QVector3D pOrigin ( ptFirst.x (), ptFirst.y (), std::isnan ( ptFirst.z () ) ? 0 : ptFirst.z () );
223223 QVector3D pXVector;
224224 // Here we define the two perpendicular vectors that define the local
225225 // 2D space on the plane. They will act as axis for which we will
@@ -242,7 +242,7 @@ void QgsTessellator::addPolygon( const QgsPolygonV2 &polygon, float extrusionHei
242242 for ( int i = 0 ; i < pCount - 1 ; ++i )
243243 {
244244 exterior->pointAt ( i, pt, vt );
245- QVector3D tempPt ( pt.x (), pt.y (), ( qIsNaN ( pt.z () ) ? 0 : pt.z () ) );
245+ QVector3D tempPt ( pt.x (), pt.y (), ( std::isnan ( pt.z () ) ? 0 : pt.z () ) );
246246 const float x = QVector3D::dotProduct ( tempPt - pOrigin, pXVector );
247247 const float y = QVector3D::dotProduct ( tempPt - pOrigin, pYVector );
248248
@@ -256,7 +256,7 @@ void QgsTessellator::addPolygon( const QgsPolygonV2 &polygon, float extrusionHei
256256 p2t::Point *pt2 = new p2t::Point ( x, y );
257257 polyline.push_back ( pt2 );
258258
259- z[pt2] = qIsNaN ( pt.z () ) ? 0 : pt.z ();
259+ z[pt2] = std::isnan ( pt.z () ) ? 0 : pt.z ();
260260 }
261261 polylinesToDelete << polyline;
262262
@@ -271,7 +271,7 @@ void QgsTessellator::addPolygon( const QgsPolygonV2 &polygon, float extrusionHei
271271 QVector3D nPoint = pOrigin + pXVector * p->x + pYVector * p->y ;
272272 const double fx = nPoint.x () - mOriginX ;
273273 const double fy = nPoint.y () - mOriginY ;
274- const double fz = extrusionHeight + ( qIsNaN ( zPt ) ? 0 : zPt );
274+ const double fz = extrusionHeight + ( std::isnan ( zPt ) ? 0 : zPt );
275275 mData << fx << fz << -fy;
276276 if ( mAddNormals )
277277 mData << pNormal.x () << pNormal.z () << - pNormal.y ();
@@ -290,7 +290,7 @@ void QgsTessellator::addPolygon( const QgsPolygonV2 &polygon, float extrusionHei
290290 for ( int j = 0 ; j < hole->numPoints () - 1 ; ++j )
291291 {
292292 hole->pointAt ( j, pt, vt );
293- QVector3D tempPt ( pt.x (), pt.y (), ( qIsNaN ( pt.z () ) ? 0 : pt.z () ) );
293+ QVector3D tempPt ( pt.x (), pt.y (), ( std::isnan ( pt.z () ) ? 0 : pt.z () ) );
294294
295295 const float x = QVector3D::dotProduct ( tempPt - pOrigin, pXVector );
296296 const float y = QVector3D::dotProduct ( tempPt - pOrigin, pYVector );
@@ -305,7 +305,7 @@ void QgsTessellator::addPolygon( const QgsPolygonV2 &polygon, float extrusionHei
305305 p2t::Point *pt2 = new p2t::Point ( x, y );
306306 holePolyline.push_back ( pt2 );
307307
308- z[pt2] = qIsNaN ( pt.z () ) ? 0 : pt.z ();
308+ z[pt2] = std::isnan ( pt.z () ) ? 0 : pt.z ();
309309 }
310310 cdt->AddHole ( holePolyline );
311311 polylinesToDelete << holePolyline;
@@ -326,7 +326,7 @@ void QgsTessellator::addPolygon( const QgsPolygonV2 &polygon, float extrusionHei
326326 QVector3D nPoint = pOrigin + pXVector * p->x + pYVector * p->y ;
327327 float fx = nPoint.x () - mOriginX ;
328328 float fy = nPoint.y () - mOriginY ;
329- float fz = extrusionHeight + ( qIsNaN ( zPt ) ? 0 : zPt );
329+ float fz = extrusionHeight + ( std::isnan ( zPt ) ? 0 : zPt );
330330 mData << fx << fz << -fy;
331331 if ( mAddNormals )
332332 mData << pNormal.x () << pNormal.z () << - pNormal.y ();
0 commit comments