Add breaks

This commit is contained in:
Andreas Fabri 2018-04-06 10:23:12 +01:00
parent b5dc02cb24
commit 6375bb1bba
3 changed files with 26 additions and 0 deletions

View File

@ -792,6 +792,7 @@ Aff_transformation_repH2<R>::homogeneous(int i, int j) const
case 2: return c;
default: CGAL_assume(false);
}
break;
case 1: switch (j)
{
case 0: return d;
@ -799,6 +800,7 @@ Aff_transformation_repH2<R>::homogeneous(int i, int j) const
case 2: return f;
default: CGAL_assume(false);
}
break;
case 2: switch (j)
{
case 0: return RT(0);
@ -834,6 +836,7 @@ Translation_repH2<R>::homogeneous(int i, int j) const
case 2: return _tv.hx();
default: CGAL_assume(false);
}
break;
case 1: switch (j)
{
case 0: return RT(0);
@ -841,6 +844,7 @@ Translation_repH2<R>::homogeneous(int i, int j) const
case 2: return _tv.hy();
default: CGAL_assume(false);
}
break;
case 2: switch (j)
{
case 0: return RT(0);
@ -867,6 +871,7 @@ Translation_repH2<R>::cartesian(int i, int j) const
case 2: return _tv.x();
default: CGAL_assume(false);
}
break;
case 1: switch (j)
{
case 0: return FT(0);
@ -874,6 +879,7 @@ Translation_repH2<R>::cartesian(int i, int j) const
case 2: return _tv.y();
default: CGAL_assume(false);
}
break;
case 2: switch (j)
{
case 0: return FT(0);
@ -901,6 +907,7 @@ homogeneous(int i, int j) const
case 2: return RT(0);
default: CGAL_assume(false);
}
break;
case 1: switch (j)
{
case 0: return _sin;
@ -908,6 +915,7 @@ homogeneous(int i, int j) const
case 2: return RT(0);
default: CGAL_assume(false);
}
break;
case 2: switch (j)
{
case 0: return RT(0);
@ -935,6 +943,7 @@ cartesian(int i, int j) const
case 2: return FT(0);
default: CGAL_assume(false);
}
break;
case 1: switch (j)
{
case 0: return FT(_sin) / FT(_den);
@ -942,6 +951,7 @@ cartesian(int i, int j) const
case 2: return FT(0);
default: CGAL_assume(false);
}
break;
case 2: switch (j)
{
case 0: return FT(0);
@ -969,6 +979,7 @@ homogeneous(int i, int j) const
case 2: return RT(0);
default: CGAL_assume(false);
}
break;
case 1: switch (j)
{
case 0: return RT(0);
@ -976,6 +987,7 @@ homogeneous(int i, int j) const
case 2: return RT(0);
default: CGAL_assume(false);
}
break;
case 2: switch (j)
{
case 0: return RT(0);
@ -1003,6 +1015,7 @@ cartesian(int i, int j) const
case 2: return FT(0);
default: CGAL_assume(false);
}
break;
case 1: switch (j)
{
case 0: return FT(0);
@ -1010,6 +1023,7 @@ cartesian(int i, int j) const
case 2: return FT(0);
default: CGAL_assume(false);
}
break;
case 2: switch (j)
{
case 0: return FT(0);
@ -1038,6 +1052,7 @@ homogeneous(int i, int j) const
case 2: return l.a()*l.c()*mRT2;
default: CGAL_assume(false);
}
break;
case 1: switch (j)
{
case 0: return l.a()*l.b()*mRT2;
@ -1045,6 +1060,7 @@ homogeneous(int i, int j) const
case 2: return l.b()*l.c()*mRT2;
default: CGAL_assume(false);
}
break;
case 2: switch (j)
{
case 0: return RT(0);
@ -1073,6 +1089,7 @@ cartesian(int i, int j) const
case 2: return FT( homogeneous(0,2)) / de;
default: CGAL_assume(false);
}
break;
case 1: switch (j)
{
case 0: return FT( homogeneous(1,0)) / de;
@ -1080,6 +1097,7 @@ cartesian(int i, int j) const
case 2: return FT( homogeneous(1,2)) / de;
default: CGAL_assume(false);
}
break;
case 2: switch (j)
{
case 0: return FT(0);

View File

@ -553,6 +553,7 @@ homogeneous(int i, int j) const
case 3: return t03;
default: CGAL_assume(false);
}
break;
case 1: switch (j)
{
case 0: return t10;
@ -561,6 +562,7 @@ homogeneous(int i, int j) const
case 3: return t13;
default: CGAL_assume(false);
}
break;
case 2: switch (j)
{
case 0: return t20;
@ -569,6 +571,7 @@ homogeneous(int i, int j) const
case 3: return t23;
default: CGAL_assume(false);
}
break;
case 3: switch (j)
{
case 0: return RT0;
@ -702,6 +705,7 @@ Translation_repH3<R>::homogeneous(int i, int j) const
case 3: return tv.hx();
default: CGAL_assume(false);
}
break;
case 1: switch (j)
{
case 0: return RT0;
@ -710,6 +714,7 @@ Translation_repH3<R>::homogeneous(int i, int j) const
case 3: return tv.hy();
default: CGAL_assume(false);
}
break;
case 2: switch (j)
{
case 0: return RT0;
@ -718,6 +723,7 @@ Translation_repH3<R>::homogeneous(int i, int j) const
case 3: return tv.hz();
default: CGAL_assume(false);
}
break;
case 3: switch (j)
{
case 0: return RT0;

View File

@ -207,6 +207,7 @@ private:
return (Visibility_2::orientation_2(geom_traits, s2, t2, q)
== Visibility_2::orientation_2(geom_traits, s2, t2, s1));
}
break;
case RIGHT_TURN:
switch (Visibility_2::orientation_2(geom_traits, s1, t1, s2)) {
case COLLINEAR:
@ -225,6 +226,7 @@ private:
return true;
default: CGAL_assume(false);
}
break;
case LEFT_TURN:
switch (Visibility_2::orientation_2(geom_traits, s1, t1, s2)) {
case COLLINEAR: