Corrected a wrong usage of IntersectionSegmentTriangle (could not compile...)

This commit is contained in:
Paolo Cignoni 2014-04-07 14:48:16 +00:00
parent adfa6dde12
commit bf1e2977d0
1 changed files with 347 additions and 347 deletions

View File

@ -664,7 +664,7 @@ bool IntersectionTriangleBox(const vcg::Box3<ScalarType> &bbox,
diag[3]=Segment3<ScalarType>(bbox.P(3),bbox.P(4));
ScalarType a,b,dist;
for (int i=0;i<3;i++)
if (IntersectionSegmentTriangle<ScalarType>(diag[i],p0,p1,p2,a,b,dist))
if (IntersectionSegmentTriangle<ScalarType>(diag[i],p0,p1,p2,a,b))
return true;
return false;