|
@@ -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);
|