From 080ec71ca5ed635ecbb251f58650659ab944ef61 Mon Sep 17 00:00:00 2001 From: cnr-isti-vclab Date: Wed, 6 Jun 2007 15:38:57 +0000 Subject: [PATCH] Use the barycenter function from triangle3.h instead of the one in face\base.h. --- vcg/complex/trimesh/inside.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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();