Changeset 21376 in osm for applications/editors/josm/plugins/terracer/src
- Timestamp:
- 2010-05-19T22:28:31+02:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/terracer/src/terracer/TerracerAction.java
r21163 r21376 203 203 + " from " + from + " to " + to + " step " + step); 204 204 } 205 206 // now find which is the longest side connecting the first node207 Pair<Way, Way> interp = findFrontAndBack(outline);208 209 final double frontLength = wayLength(interp.a);210 final double backLength = wayLength(interp.b);211 205 212 206 // new nodes array to hold all intermediate nodes … … 216 210 Collection<Way> ways = new LinkedList<Way>(); 217 211 212 // Should this building be terraced (i.e. is there more then one section?) 218 213 if (nb > 1) { 219 214 // create intermediate nodes by interpolating. 215 216 // now find which is the longest side connecting the first node 217 Pair<Way, Way> interp = findFrontAndBack(outline); 218 219 final double frontLength = wayLength(interp.a); 220 final double backLength = wayLength(interp.b); 221 220 222 for (int i = 0; i <= nb; ++i) { 221 223 new_nodes[0][i] = interpolateAlong(interp.a, frontLength * i / nb); … … 254 256 } 255 257 } else { 256 // Single building, just add the address details258 // Single section, just add the address details 257 259 Way newOutline; 258 260 newOutline = addressBuilding(outline, street, streetName, From);
Note:
See TracChangeset
for help on using the changeset viewer.
