/[libvob]/libvob/include/vob/geom/Fillets2.hxx
ViewVC logotype

Diff of /libvob/include/vob/geom/Fillets2.hxx

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.14 by jvk, Fri Jun 13 13:38:12 2003 UTC revision 1.15 by jvk, Sat Jun 14 07:53:04 2003 UTC
# Line 233  namespace Geom { Line 233  namespace Geom {
233              double err;              double err;
234              double maxerr = tol * node.r;              double maxerr = tol * node.r;
235    
236              while (1) {              int iter = 100;
237                while (iter--) {
238                  f = 0.5 * (f0 + f1);                  f = 0.5 * (f0 + f1);
239                  p = point(f) - node.ctr;                  p = point(f) - node.ctr;
240                  err = dir2.dot(p);                  err = dir2.dot(p);
# Line 247  namespace Geom { Line 248  namespace Geom {
248                      f1 = f;                      f1 = f;
249                  }                  }
250              }              }
251                if (iter == 0) {
252                    cout << "EllipseFillet::point reached max iter" << std::endl;
253                    success = false;
254                    return ZVec();
255                }
256    
257              success = true;              success = true;
258              if (ptfract) *ptfract = f;              if (ptfract) *ptfract = f;

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.15

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26