Skip to content

Commit 037f0bb

Browse files
author
mhugent
committed
remove debug code from triangle interpolation class
git-svn-id: http://svn.osgeo.org/qgis/trunk@10494 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent a415b87 commit 037f0bb

File tree

2 files changed

+1
-16
lines changed

2 files changed

+1
-16
lines changed

src/plugins/interpolation/qgstininterpolator.cpp

-15
Original file line numberDiff line numberDiff line change
@@ -65,28 +65,13 @@ void QgsTINInterpolator::initialize()
6565
DualEdgeTriangulation* theDualEdgeTriangulation = new DualEdgeTriangulation( mCachedBaseData.size(), 0 );
6666
mTriangulation = theDualEdgeTriangulation;
6767

68-
//do some randomisation on the base data to have better results with regular structures
69-
vertexData vertex1, vertex2;
70-
71-
for ( int i = 0; i <= mCachedBaseData.size() / 2; ++i )
72-
{
73-
vertex1 = mCachedBaseData[i];
74-
Point3D* thePoint1 = new Point3D( vertex1.x, vertex1.y, vertex1.z );
75-
mTriangulation->addPoint( thePoint1 );
76-
vertex2 = mCachedBaseData[mCachedBaseData.size() - 1 - i];
77-
Point3D* thePoint2 = new Point3D( vertex2.x, vertex2.y, vertex2.z );
78-
mTriangulation->addPoint( thePoint2 );
79-
}
80-
81-
#if 0
8268
//add all the vertices to the triangulation
8369
QVector<vertexData>::const_iterator vertex_it = mCachedBaseData.constBegin();
8470
for ( ; vertex_it != mCachedBaseData.constEnd(); ++vertex_it )
8571
{
8672
Point3D* thePoint = new Point3D( vertex_it->x, vertex_it->y, vertex_it->z );
8773
mTriangulation->addPoint( thePoint );
8874
}
89-
#endif //0
9075

9176
mTriangleInterpolator = new LinTriangleInterpolator( theDualEdgeTriangulation );
9277

src/plugins/qgisplugin.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class QgisPlugin
6666
UI = 1, /* user interface plug-in */
6767
MAPLAYER, /* map layer plug-in */
6868
RENDERER, /*a plugin for a new renderer class*/
69-
VECTOR_OVERLAY
69+
VECTOR_OVERLAY /*an overlay plugin. Added in version 1.1*/
7070
};
7171

7272

0 commit comments

Comments
 (0)