Skip to content
Permalink
Browse files

remove debug code from triangle interpolation class

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@10494 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent
mhugent committed Apr 7, 2009
1 parent 977b2af commit 6c7f59014907f1db6b92ddb115d04649ecd61c14
Showing with 1 addition and 16 deletions.
  1. +0 −15 src/plugins/interpolation/qgstininterpolator.cpp
  2. +1 −1 src/plugins/qgisplugin.h
@@ -65,28 +65,13 @@ void QgsTINInterpolator::initialize()
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 )
{
Point3D* thePoint = new Point3D( vertex_it->x, vertex_it->y, vertex_it->z );
mTriangulation->addPoint( thePoint );
}
#endif //0

mTriangleInterpolator = new LinTriangleInterpolator( theDualEdgeTriangulation );

@@ -66,7 +66,7 @@ class QgisPlugin
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*/
};


0 comments on commit 6c7f590

Please sign in to comment.
You can’t perform that action at this time.