فهرست منبع

Merge pull request #860 from Squareys/fix-pi

Fix Mistake in last Pullrequest
Kim Kulling 9 سال پیش
والد
کامیت
b120454bdd
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      contrib/poly2tri/poly2tri/sweep/sweep.cc

+ 1 - 1
contrib/poly2tri/poly2tri/sweep/sweep.cc

@@ -231,7 +231,7 @@ void Sweep::FillAdvancingFront(SweepContext& tcx, Node& n)
 
   while (node->next) {
     double angle = HoleAngle(*node);
-    if (angle > PI || angle < -PI_2) break;
+    if (angle > PI_2 || angle < -PI_2) break;
     Fill(tcx, *node);
     node = node->next;
   }