Actually throw exceptions

This commit is contained in:
Pierre Dejoue 2020-05-21 15:47:13 +02:00
parent 7f8c4c5e4c
commit 06b0f14b29

View File

@ -123,8 +123,7 @@ void Sweep::EdgeEvent(SweepContext& tcx, Point& ep, Point& eq, Triangle* triangl
triangle = &triangle->NeighborAcross(point);
EdgeEvent( tcx, ep, *p1, triangle, *p1 );
} else {
std::runtime_error("EdgeEvent - collinear points not supported");
assert(0);
throw std::runtime_error("EdgeEvent - collinear points not supported");
}
return;
}
@ -140,8 +139,7 @@ void Sweep::EdgeEvent(SweepContext& tcx, Point& ep, Point& eq, Triangle* triangl
triangle = &triangle->NeighborAcross(point);
EdgeEvent( tcx, ep, *p2, triangle, *p2 );
} else {
std::runtime_error("EdgeEvent - collinear points not supported");
assert(0);
throw std::runtime_error("EdgeEvent - collinear points not supported");
}
return;
}