#include "Fillet.hxx" namespace Fillet { DBGVAR(dbg, "Fillet.general"); bool _Cutter::operator()(const ZPt &a, const ZPt &b) { DBG(dbg) << "Cut "< " << in<<"\n"; if(!in.finite()) return false; Pt p = (Pt)in; DBG(dbg) << "Cutter points: "<cut = ZPt(p.x, p.y, a.z); // XXX DBG(dbg) << "CUT!!! "< 1) t = 1; // Blending functions float b = 1 - sqrt(sqrt(1-(1-t)*(1-t)*(1-t)*(1-t))); // distance // float b = 1 - sqrt(1-(1-t)*(1-t)); // distance float c = 1 - t * t * (3 - 2 * t * t); // direction ZPt res; if (t < 1E-4) { int sign = (x > 0 ? 1 : -1); res.x = to.x + sign * BLENDW * width * norm.x; res.y = to.y + sign * BLENDW * width * norm.y; res.z = to.z; DBG(dbg) << "Result by close range " << res << " from "<< to<<" "<