diff --git a/vcg/space/intersection3.h b/vcg/space/intersection3.h index bc90c8a1..877d6534 100644 --- a/vcg/space/intersection3.h +++ b/vcg/space/intersection3.h @@ -662,7 +662,7 @@ bool IntersectionTriangleBox(const vcg::Box3 &bbox, diag[1]=Segment3(bbox.P(1),bbox.P(6)); diag[2]=Segment3(bbox.P(2),bbox.P(5)); diag[3]=Segment3(bbox.P(3),bbox.P(4)); - ScalarType a,b,dist; + ScalarType a,b; for (int i=0;i<3;i++) if (IntersectionSegmentTriangle(diag[i],p0,p1,p2,a,b)) return true;