diff --git a/vcg/complex/trimesh/inside.h b/vcg/complex/trimesh/inside.h index 92f186fa..e74a4706 100644 --- a/vcg/complex/trimesh/inside.h +++ b/vcg/complex/trimesh/inside.h @@ -26,11 +26,15 @@ History $Log: not supported by cvs2svn $ +Revision 1.2 2007/06/06 14:26:51 pietroni +compiling error resolved + ****************************************************************************/ #include #include +#include #ifndef VCG_INSIDE #define VCG_INSIDE @@ -93,7 +97,7 @@ namespace vcg { ///then see normal value again else { - CoordType bary=f->Barycenter(); + CoordType bary = vcg::Barycenter< FaceType >(*f); vcg::Ray3 r; r.Set(test,(bary-test));///set origin and direction r.Normalize();