Changeset 280:e7f8647ce760 in lemon for lemon/graph_to_eps.h
- Timestamp:
- 07/14/08 16:23:11 (15 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/graph_to_eps.h
r253 r280 667 667 ///it draws the graph. 668 668 void run() { 669 //\todo better 'epsilon' would be nice here.670 669 const double EPSILON=1e-9; 671 670 if(dontPrint) return; … … 708 707 for(ArcIt e(g);e!=INVALID;++e) 709 708 max_w=std::max(double(_arcWidths[e]),max_w); 710 //\todo better 'epsilon' would be nice here.711 709 if(max_w>EPSILON) { 712 710 _arcWidthScale/=max_w; … … 718 716 for(NodeIt n(g);n!=INVALID;++n) 719 717 max_s=std::max(double(_nodeSizes[n]),max_s); 720 //\todo better 'epsilon' would be nice here.721 718 if(max_s>EPSILON) { 722 719 _nodeScale/=max_s; … … 874 871 } 875 872 else { 876 //\todo Verify centering877 873 double sc= std::min((A4HEIGHT-2*A4BORDER)/bb.width(), 878 874 (A4WIDTH-2*A4BORDER)/bb.height()); … … 907 903 dvec(mycoords[g.target(*i)]-mycoords[g.source(*i)]); 908 904 double l=std::sqrt(dvec.normSquare()); 909 //\todo better 'epsilon' would be nice here.910 905 dim2::Point<double> d(dvec/std::max(l,EPSILON)); 911 906 dim2::Point<double> m;
Note: See TracChangeset
for help on using the changeset viewer.