diff --git a/apps/metro/sampling.h b/apps/metro/sampling.h index 3e7e7a1c..07a18041 100644 --- a/apps/metro/sampling.h +++ b/apps/metro/sampling.h @@ -36,6 +36,7 @@ //#include #include #include +#include #include using namespace vcg; // ----------------------------------------------------------------------------------------------- @@ -195,6 +196,12 @@ float Sampling::AddSample(const Point3x &p) // compute distance between p_i and the mesh S2 MinDistPoint(S2, p, gS2, dist, normf, bestq, f, ip); + if(dist >0.001) + { + printf("%f %f %f\n",p[0],p[1],p[2]); + MinDistPoint(S2, p, gS2, dist, normf, bestq, f, ip); + } + // update distance measures if(dist == dist_upper_bound) return -1.0;