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

This commit is contained in:
copycd
2023-12-30 16:46:08 +09:00
committed by Kim Kulling
parent 5cbdb6c63b
commit 6bcdf989fb

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;
}