Skip to content

Commit f00e1e1

Browse files
committed
minor tweaks
1 parent 5048c4f commit f00e1e1

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

osm-data-viewer/r4/osm-data-viewer.html

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@
350350

351351
if ( surfaceType === 'RoofCeiling' ) { color = 0xcc0000; }
352352
if ( surfaceType === 'Floor' ) { color = 0x0000cc; }
353-
mesh = quad( vertices, color );
353+
mesh = quad( vertices, color, name );
354354

355355
mesh.userData.handle = handle;
356356
mesh.userData.name = name;
@@ -397,7 +397,7 @@
397397

398398
color = 0x444444;
399399

400-
mesh = quad( vertices, color );
400+
mesh = quad( vertices, color, name );
401401

402402
mesh.userData.handle = handle;
403403
mesh.userData.name = name;
@@ -445,7 +445,7 @@
445445
}
446446
*/
447447

448-
function quad( arr, color ) {
448+
function quad( arr, color, name ) {
449449

450450
if ( arr.length < 4 ) {
451451
var faces = [
@@ -484,9 +484,10 @@
484484

485485
mesh.castShadow = true;
486486
mesh.receiveShadow = true;
487+
mesh.name = name;
487488

488489
edges = new THREE.EdgesHelper( mesh, 0x000000 );
489-
mesh.add( edges );
490+
scene.add( edges );
490491

491492
face = new THREE.FaceNormalsHelper( mesh, -5, 0xff00ff );
492493

osm-data-viewer/readme.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,12 @@ The idea, or the hope anyway, is to write code that's easy to read - code that y
6060

6161
### Change Log
6262

63+
2015-03-10 ~ Theo
64+
65+
* Helpers to sub-surfaces now line up with parent sub-surface
66+
* Still have not figured out what happens to the attic roof!
67+
68+
6369
2015-03-05 ~ Theo
6470

6571
* Add version and space parameters

0 commit comments

Comments
 (0)