[QGIS Commit] r10494 - in trunk/qgis/src/plugins: . interpolation

svn_qgis at osgeo.org svn_qgis at osgeo.org
Tue Apr 7 05:27:57 EDT 2009


Author: mhugent
Date: 2009-04-07 05:27:57 -0400 (Tue, 07 Apr 2009)
New Revision: 10494

Modified:
   trunk/qgis/src/plugins/interpolation/qgstininterpolator.cpp
   trunk/qgis/src/plugins/qgisplugin.h
Log:
remove debug code from triangle interpolation class

Modified: trunk/qgis/src/plugins/interpolation/qgstininterpolator.cpp
===================================================================
--- trunk/qgis/src/plugins/interpolation/qgstininterpolator.cpp	2009-04-07 08:24:55 UTC (rev 10493)
+++ trunk/qgis/src/plugins/interpolation/qgstininterpolator.cpp	2009-04-07 09:27:57 UTC (rev 10494)
@@ -65,20 +65,6 @@
   DualEdgeTriangulation* theDualEdgeTriangulation = new DualEdgeTriangulation( mCachedBaseData.size(), 0 );
   mTriangulation = theDualEdgeTriangulation;
 
-  //do some randomisation on the base data to have better results with regular structures
-  vertexData vertex1, vertex2;
-
-  for ( int i = 0; i <= mCachedBaseData.size() / 2; ++i )
-  {
-    vertex1 = mCachedBaseData[i];
-    Point3D* thePoint1 = new Point3D( vertex1.x, vertex1.y, vertex1.z );
-    mTriangulation->addPoint( thePoint1 );
-    vertex2 = mCachedBaseData[mCachedBaseData.size() - 1 - i];
-    Point3D* thePoint2 = new Point3D( vertex2.x, vertex2.y, vertex2.z );
-    mTriangulation->addPoint( thePoint2 );
-  }
-
-#if 0
   //add all the vertices to the triangulation
   QVector<vertexData>::const_iterator vertex_it = mCachedBaseData.constBegin();
   for ( ; vertex_it != mCachedBaseData.constEnd(); ++vertex_it )
@@ -86,7 +72,6 @@
     Point3D* thePoint = new Point3D( vertex_it->x, vertex_it->y, vertex_it->z );
     mTriangulation->addPoint( thePoint );
   }
-#endif //0
 
   mTriangleInterpolator = new LinTriangleInterpolator( theDualEdgeTriangulation );
 

Modified: trunk/qgis/src/plugins/qgisplugin.h
===================================================================
--- trunk/qgis/src/plugins/qgisplugin.h	2009-04-07 08:24:55 UTC (rev 10493)
+++ trunk/qgis/src/plugins/qgisplugin.h	2009-04-07 09:27:57 UTC (rev 10494)
@@ -66,7 +66,7 @@
       UI = 1,                     /* user interface plug-in */
       MAPLAYER,                    /* map layer plug-in */
       RENDERER,                     /*a plugin for a new renderer class*/
-      VECTOR_OVERLAY
+      VECTOR_OVERLAY                /*an overlay plugin. Added in version 1.1*/
     };
 
 



More information about the QGIS-commit mailing list