corrected the call to new IntersectionSegmentTriangle function (after a bug fixing in the function)

This commit is contained in:
Nico Pietroni 2010-10-15 15:23:37 +00:00
parent 88ec283477
commit e74d22e0e5
1 changed files with 3 additions and 3 deletions

View File

@ -1343,10 +1343,10 @@ private:
// if the faces share only a vertex, the opposite edge is tested against the face // if the faces share only a vertex, the opposite edge is tested against the face
if(sv==1) if(sv==1)
{ {
int i0,i1; ScalarType t,a,b; int i0,i1; ScalarType a,b;
face::SharedVertex(f0,f1,i0,i1); face::SharedVertex(f0,f1,i0,i1);
if(vcg::IntersectionSegmentTriangle(Segment3<ScalarType>((*f0).V1(i0)->P(),(*f0).V2(i0)->P()), *f1, t, a, b) ) return true; if(vcg::IntersectionSegmentTriangle(Segment3<ScalarType>((*f0).V1(i0)->P(),(*f0).V2(i0)->P()), *f1, a, b) ) return true;
if(vcg::IntersectionSegmentTriangle(Segment3<ScalarType>((*f1).V1(i1)->P(),(*f1).V2(i1)->P()), *f0, t, a, b) ) return true; if(vcg::IntersectionSegmentTriangle(Segment3<ScalarType>((*f1).V1(i1)->P(),(*f1).V2(i1)->P()), *f0, a, b) ) return true;
} }
return false; return false;
} }