/[fenfire]/fenfire/org/fenfire/fenmm/MMGeometry.java
ViewVC logotype

Diff of /fenfire/org/fenfire/fenmm/MMGeometry.java

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

revision 1.5 by humppake, Mon Aug 25 23:01:57 2003 UTC revision 1.6 by humppake, Mon Aug 25 23:11:37 2003 UTC
# Line 60  public class MMGeometry { Line 60  public class MMGeometry {
60          double y = xy[1];          double y = xy[1];
61    
62          double s = filletWidth * getScale(depth);          double s = filletWidth * getScale(depth);
63            if (depth == maxDepth) s = 0;
64    
65          int cs = vs.orthoBoxCS(into, new Pair("MMNode", node), depth,          int cs = vs.orthoBoxCS(into, new Pair("MMNode", node), depth,
66                                 (float)(x - s/2f), (float)(y - s/2f),                                 (float)(x - s/2f), (float)(y - s/2f),
# Line 154  public class MMGeometry { Line 155  public class MMGeometry {
155             if (net.hasBeenLinked(centerNode, link)) continue;             if (net.hasBeenLinked(centerNode, link)) continue;
156             net.link(centerNode, link);             net.link(centerNode, link);
157                        
158             if (beginDepth < maxDepth) {             if (net.getPlace(link) == null) {
159                 if (net.getPlace(link) == null) {                 MMPlace pl = getPlace(vs, into, x, y, link,
160                     MMPlace pl = getPlace(vs, into, x, y, link,                                       startAngle+rotationAngle*i,
161                                           startAngle+rotationAngle*i,                                       beginDepth);
162                                           beginDepth);                 net.put(link, pl, beginDepth);
                    net.put(link, pl, beginDepth);  
                }  
163             }             }
164         }         }
165    

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

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