Skip to content

Commit

Permalink
remove debug code from triangle interpolation class
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@10494 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Apr 7, 2009
1 parent a415b87 commit 037f0bb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 16 deletions.
15 changes: 0 additions & 15 deletions src/plugins/interpolation/qgstininterpolator.cpp
Expand Up @@ -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 );

Expand Down
2 changes: 1 addition & 1 deletion src/plugins/qgisplugin.h
Expand Up @@ -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*/
};


Expand Down

0 comments on commit 037f0bb

Please sign in to comment.