Browse Source

far --> is_far for desperate windows compiler

Former-commit-id: 1227c849728ead67ed8e8d93436ca3befc9664df
Alec Jacobson 9 years ago
parent
commit
5b15bc74dd
1 changed files with 6 additions and 5 deletions
  1. 6 5
      include/igl/WindingNumberTree.h

+ 6 - 5
include/igl/WindingNumberTree.h

@@ -434,7 +434,8 @@ inline double igl::WindingNumberTree<Point>::cached_winding_number(
   const Point & p) const
 {
   using namespace std;
-  // Simple metric for "far".
+  // Simple metric for `is_far`
+  //
   //   this             that
   //                   --------
   //   -----          /   |    \ .
@@ -450,17 +451,17 @@ inline double igl::WindingNumberTree<Point>::cached_winding_number(
   // a = atan2(R-r,d), where d is the distance between centers
 
   // That should be bigger (what about parent? what about sister?)
-  bool far = this->radius<that.radius;
-  if(far)
+  bool is_far = this->radius<that.radius;
+  if(is_far)
   {
     double a = atan2(
       that.radius - this->radius,
       (that.center - this->center).norm());
     assert(a>0);
-    far = (a<PI/8.0);
+    is_far = (a<PI/8.0);
   }
 
-  if(far)
+  if(is_far)
   {
     // Not implemented yet
     pair<const WindingNumberTree*,const WindingNumberTree*> this_that(this,&that);