added cast in a SQRT (could not resolve overloading

(int)(sqrt((double)n_samples) +1.0);
This commit is contained in:
Marco Callieri 2009-06-08 15:48:55 +00:00
parent b05e5d1184
commit b066baa686
1 changed files with 1 additions and 1 deletions

View File

@ -621,7 +621,7 @@ static void FaceSimilar(MetroMesh & m, VertexSampler &ps,int sampleNum, bool dua
n_samples_per_edge = (int)((sqrt(1.0+8.0*(double)n_samples) +5.0)/2.0); // original for non dual case
n_samples = SingleFaceSimilar(&*fi,ps, n_samples_per_edge);
} else {
n_samples_per_edge = (int)(sqrt(n_samples) +1.0);
n_samples_per_edge = (int)(sqrt((double)n_samples) +1.0);
n_samples = SingleFaceSimilarDual(&*fi,ps, n_samples_per_edge,randomFlag);
}
}