added include of distance.h

This commit is contained in:
ganovelli 2004-05-13 12:39:38 +00:00
parent 8dc8e70f50
commit e10738ac01
1 changed files with 7 additions and 0 deletions

View File

@ -36,6 +36,7 @@
//#include <vcg/tools/Align/Hist.h>
#include <vcg/space/box3.h>
#include <vcg/space/color4.h>
#include <vcg/simplex/face/distance.h>
#include <vcg/space/index/grid_static_ptr.h>
using namespace vcg;
// -----------------------------------------------------------------------------------------------
@ -195,6 +196,12 @@ float Sampling<MetroMesh>::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;