11 mOutputLayer( outputLayer ), mNumberOfPointsAttribute( nPointsAttribute ), mMinDistanceAttribute( minDistAttribute ), mNCreatedPoints( 0 )
61 mt_srand( QTime::currentTime().msec() );
64 double minDistance = 0;
97 QMap< QgsFeatureId, QgsPoint > pointMapForFeature;
100 int maxIterations = nPoints * 200;
106 while ( nIterations < maxIterations && points < nPoints )
136 if ( minDistance <= 0 )
142 if ( neighborList.isEmpty() )
147 QMap< QgsFeatureId, QgsPoint >::const_iterator it = pointMap.find( neighborList[0] );
148 if ( it == pointMap.constEnd() )
154 if ( neighborPt.
sqrDist( pt ) < ( minDistance * minDistance ) )