Comment what default means

This commit is contained in:
Andreas Fabri 2018-02-09 14:23:40 +00:00
parent 6f79d2c6f0
commit 1170433885
1 changed files with 6 additions and 6 deletions

View File

@ -280,7 +280,7 @@ intersection_coplanar(const typename K::Triangle_3 &t,
case NEGATIVE:
// a is isolated on the positive side
return t3s3_intersection_coplanar_aux(b,c,a,q,p,false,k);
default:
default: // COLLINEAR
// b,c,p,q are aligned, [p,q]&[b,c] have the same direction
return t3s3_intersection_collinear_aux(b,c,p,q,k);
}
@ -311,7 +311,7 @@ intersection_coplanar(const typename K::Triangle_3 &t,
// the triangle lies in the negative halfspace
// defined by the segment's supporting line.
return intersection_return<typename K::Intersect_3, typename K::Segment_3, typename K::Triangle_3>();
default:
default: // COLLINEAR
if ( collinear_ordered(p,c,q) ) // c is inside [p,q]
return intersection_return<typename K::Intersect_3, typename K::Segment_3, typename K::Triangle_3>(c);
else
@ -328,7 +328,7 @@ intersection_coplanar(const typename K::Triangle_3 &t,
return intersection_return<typename K::Intersect_3, typename K::Segment_3, typename K::Triangle_3>(b);
else
return intersection_return<typename K::Intersect_3, typename K::Segment_3, typename K::Triangle_3>();
default:
default: // COLLINEAR
// b,c,p,q are aligned, [p,q]&[c,b] have the same direction
return t3s3_intersection_collinear_aux(c,b,p,q,k);
}
@ -353,7 +353,7 @@ intersection_coplanar(const typename K::Triangle_3 &t,
case NEGATIVE:
// b is isolated on the positive side
return t3s3_intersection_coplanar_aux(c,a,b,q,p,false,k);
default:
default: // COLLINEAR
// a,c,p,q are aligned, [p,q]&[c,a] have the same direction
return t3s3_intersection_collinear_aux(c,a,p,q,k);
}
@ -368,7 +368,7 @@ intersection_coplanar(const typename K::Triangle_3 &t,
return intersection_return<typename K::Intersect_3, typename K::Segment_3, typename K::Triangle_3>(a);
else
return intersection_return<typename K::Intersect_3, typename K::Segment_3, typename K::Triangle_3>();
default:
default: // COLLINEAR
// a,c,p,q are aligned, [p,q]&[a,c] have the same direction
return t3s3_intersection_collinear_aux(a,c,p,q,k);
}
@ -381,7 +381,7 @@ intersection_coplanar(const typename K::Triangle_3 &t,
case NEGATIVE:
// a,b,p,q are aligned, [p,q]&[b,a] have the same direction
return t3s3_intersection_collinear_aux(b,a,p,q,k);
default:
default: // COLLINEAR
// case pqc == COLLINEAR is impossible since the triangle is
// assumed to be non flat
CGAL_error();