Triangle value is null-error, I don't know why it happened.
parent
5cbdb6c63b
commit
6bcdf989fb
|
@ -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)
|
void Sweep::EdgeEvent(SweepContext& tcx, Point& ep, Point& eq, Triangle* triangle, Point& point)
|
||||||
{
|
{
|
||||||
|
if (triangle == nullptr)
|
||||||
|
return;
|
||||||
|
|
||||||
if (IsEdgeSideOfTriangle(*triangle, ep, eq)) {
|
if (IsEdgeSideOfTriangle(*triangle, ep, eq)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue