Triangle value is null-error, I don't know why it happened.

pull/5384/head^2
copycd 2023-12-30 16:46:08 +09:00 committed by Kim Kulling
parent 5cbdb6c63b
commit 6bcdf989fb
1 changed files with 3 additions and 0 deletions

View File

@ -111,6 +111,9 @@ void Sweep::EdgeEvent(SweepContext& tcx, Edge* edge, Node* node)
void Sweep::EdgeEvent(SweepContext& tcx, Point& ep, Point& eq, Triangle* triangle, Point& point)
{
if (triangle == nullptr)
return;
if (IsEdgeSideOfTriangle(*triangle, ep, eq)) {
return;
}