Changeset 29854 in osm for applications/editors/josm/plugins/tracer/src
- Timestamp:
- 2013-08-21T03:47:16+02:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/tracer/src/org/openstreetmap/josm/plugins/tracer/ConnectWays.java
r23191 r29854 124 124 throws IllegalStateException, IndexOutOfBoundsException { 125 125 126 List<Command> cmds = new LinkedList<Command>();127 128 126 LatLon ll = node.getCoor(); 129 127 BBox bbox = new BBox( … … 191 189 System.out.println(way.getNodes().get(i) + "-----" + way.getNodes().get((i + 1) % way.getNodesCount())); 192 190 double minDistanceSq = MIN_DISTANCE_SQ; 193 double maxAngle = MAX_ANGLE; 191 //double maxAngle = MAX_ANGLE; 194 192 List<Node> nodes = Main.main.getCurrentDataSet().searchNodes(new BBox( 195 193 Math.min(n1.getX(), n2.getX()) - minDistanceSq, … … 208 206 System.out.println("Angle: " + angle + " distance: " + dist + " Node: " + nod); 209 207 if (!n1.equalsEpsilon(nn) && !n2.equalsEpsilon(nn) && dist < minDistanceSq){ // && Math.abs(angle) < maxAngle) { 210 maxAngle = angle; 208 //maxAngle = angle; 211 209 nearestNode = nod; 212 210 }
Note:
See TracChangeset
for help on using the changeset viewer.