From e10738ac01a503fb4a7267d16d10db280d72f75b Mon Sep 17 00:00:00 2001 From: ganovelli Date: Thu, 13 May 2004 12:39:38 +0000 Subject: [PATCH] added include of distance.h --- apps/metro/sampling.h | 7 +++++++ 1 file changed, 7 insertions(+) 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;