@things-factory/scene-visualizer 6.0.5 → 6.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@things-factory/scene-visualizer",
3
3
  "description": "The visualizer component for things-scene.",
4
- "version": "6.0.5",
4
+ "version": "6.0.7",
5
5
  "things-scene": true,
6
6
  "browser": "src/index.js",
7
7
  "author": "heartyoh <heartyoh@hatiolab.com>",
@@ -17,7 +17,7 @@
17
17
  "dependencies": {
18
18
  "@hatiolab/things-scene": "^3.2.0",
19
19
  "lit": "^2.5.0",
20
- "three": "^0.122.0"
20
+ "three": "^0.149.0"
21
21
  },
22
- "gitHead": "af75b451e62cdeeab8b42ff3c49a213cd1ad1ea5"
22
+ "gitHead": "5af6d8613bd6eab6feaa69df942ef3ddfae764fe"
23
23
  }
package/src/banner.js CHANGED
@@ -52,7 +52,7 @@ export default class Banner extends Object3D {
52
52
  createCube(w, h, d) {
53
53
  var { boxColor = '#ccaa76' } = this.model
54
54
 
55
- var geometry = new THREE.BoxBufferGeometry(w, d, h)
55
+ var geometry = new THREE.BoxGeometry(w, d, h)
56
56
  var material = new THREE.MeshStandardMaterial({
57
57
  color: boxColor,
58
58
  side: THREE.FrontSide
@@ -88,7 +88,7 @@ export default class Banner extends Object3D {
88
88
  })
89
89
  }
90
90
 
91
- var boardGeometry = new THREE.PlaneBufferGeometry(w, h, 1, 1)
91
+ var boardGeometry = new THREE.PlaneGeometry(w, h, 1, 1)
92
92
  var board = new THREE.Mesh(boardGeometry, boardMaterial)
93
93
 
94
94
  return board
package/src/cube.js CHANGED
@@ -48,7 +48,7 @@ export default class Cube extends Mesh {
48
48
  createCube(w, h, d) {
49
49
  let { fillStyle = 'lightgray' } = this.model
50
50
 
51
- this.geometry = new THREE.BoxBufferGeometry(w, d, h)
51
+ this.geometry = new THREE.BoxGeometry(w, d, h)
52
52
  this.material = new THREE.MeshStandardMaterial({ color: fillStyle, side: THREE.FrontSide })
53
53
  }
54
54
 
package/src/cylinder.js CHANGED
@@ -54,7 +54,7 @@ export default class Cylinder extends Mesh {
54
54
  createCylinder(rx, rz) {
55
55
  let { fillStyle = 'lightgray' } = this.model
56
56
 
57
- this.geometry = new THREE.CylinderBufferGeometry(rx, rx, rz, 25)
57
+ this.geometry = new THREE.CylinderGeometry(rx, rx, rz, 25)
58
58
  this.material = new THREE.MeshStandardMaterial({ color: fillStyle, side: THREE.FrontSide })
59
59
 
60
60
  // this.castShadow = true
package/src/desk.js CHANGED
@@ -71,7 +71,7 @@ export default class Desk extends Object3D {
71
71
  var posZ = -1
72
72
 
73
73
  for (var i = 0; i < 4; i++) {
74
- var geometry = new THREE.BoxBufferGeometry(legThickness, d, legThickness)
74
+ var geometry = new THREE.BoxGeometry(legThickness, d, legThickness)
75
75
  var material = new THREE.MeshStandardMaterial({
76
76
  color: this.model.legColor || '#252525'
77
77
  })
@@ -103,7 +103,7 @@ export default class Desk extends Object3D {
103
103
  var boardMaterial = new THREE.MeshStandardMaterial({
104
104
  color: this.model.fillStyle || '#ccaa76'
105
105
  })
106
- var boardGeometry = new THREE.BoxBufferGeometry(w, h, d, 1, 1)
106
+ var boardGeometry = new THREE.BoxGeometry(w, h, d, 1, 1)
107
107
  var board = new THREE.Mesh(boardGeometry, boardMaterial)
108
108
 
109
109
  return board
@@ -32,11 +32,19 @@ export default class EllipseExtrude extends Extrude {
32
32
 
33
33
  get shape() {
34
34
  var { cx = 0, cy = 0, rx = 1, ry = 1, startAngle = 0, endAngle = 2 * Math.PI, anticlockwise = false } = this.model
35
- var shape = new THREE.Shape()
36
35
 
37
- shape.ellipse(cx, cy, Math.abs(rx), Math.abs(ry), 0, startAngle, endAngle, anticlockwise)
38
-
39
- return shape
36
+ const curve = new THREE.EllipseCurve(
37
+ cx,
38
+ cy, // ax, aY
39
+ Math.abs(rx),
40
+ Math.abs(ry), // xRadius, yRadius
41
+ startAngle,
42
+ endAngle, // aStartAngle, aEndAngle
43
+ anticlockwise, // aClockwise
44
+ 0 // aRotation
45
+ )
46
+
47
+ return new THREE.Shape(curve.getPoints(50))
40
48
  }
41
49
  }
42
50
 
package/src/extrude.js CHANGED
@@ -33,7 +33,7 @@ export default class Extrude extends Object3D {
33
33
  return this._boundingUVGenerator
34
34
  }
35
35
 
36
- async createObject() {
36
+ async createObject() {
37
37
  var { fillStyle = 0xffffff, strokeStyle = 0x636363, lineWidth = 1, alpha = 1 } = this.model
38
38
 
39
39
  // 다각형 그리기
@@ -65,7 +65,7 @@ async createObject() {
65
65
  }
66
66
 
67
67
  createGeometry(shape, extrudeSettings) {
68
- var geometry = new THREE.ExtrudeBufferGeometry(shape, extrudeSettings)
68
+ var geometry = new THREE.ExtrudeGeometry(shape, extrudeSettings)
69
69
  geometry.center()
70
70
 
71
71
  return geometry
@@ -145,7 +145,7 @@ async createObject() {
145
145
  bevelSizeSegments: 5
146
146
  }
147
147
 
148
- var sideGeometry = new THREE.ExtrudeBufferGeometry(shape, sideExtrudeSettings)
148
+ var sideGeometry = new THREE.ExtrudeGeometry(shape, sideExtrudeSettings)
149
149
  sideGeometry.center()
150
150
 
151
151
  var sideMesh = new THREE.Mesh(sideGeometry, sideMaterial)
@@ -5,6 +5,7 @@
5
5
  import { Component, RectPath, Shape } from '@hatiolab/things-scene'
6
6
  import * as THREE from 'three'
7
7
  import { GLTFLoader } from 'three/examples/jsm/loaders/GLTFLoader'
8
+ import { DRACOLoader } from 'three/examples/jsm/loaders/DRACOLoader'
8
9
  import GLTFLogo from '../assets/canvasicon-gltf.png'
9
10
  import Component3d from './component-3d'
10
11
  import Object3D from './object3d'
@@ -48,6 +49,11 @@ export default class GLTFObject extends Object3D {
48
49
 
49
50
  let gltfLoader = new GLTFLoader()
50
51
 
52
+ // Optional: Provide a DRACOLoader instance to decode compressed mesh data
53
+ const dracoLoader = new DRACOLoader()
54
+ dracoLoader.setDecoderPath('/node_modules/three/examples/jsm/libs/draco/')
55
+ gltfLoader.setDRACOLoader(dracoLoader)
56
+
51
57
  var fullSrc = this._visualizer.app.url(src)
52
58
  gltfLoader.setCrossOrigin('use-credentials')
53
59
 
package/src/rack.js CHANGED
@@ -34,13 +34,13 @@ export default class Rack extends Object3D {
34
34
  }
35
35
 
36
36
  static get rackFrameGeometry() {
37
- if (!Rack._rackFrameGeometry) Rack._rackFrameGeometry = new THREE.BoxBufferGeometry(1, 1, 1)
37
+ if (!Rack._rackFrameGeometry) Rack._rackFrameGeometry = new THREE.BoxGeometry(1, 1, 1)
38
38
 
39
39
  return Rack._rackFrameGeometry
40
40
  }
41
41
 
42
42
  static get boardGeometry() {
43
- if (!Rack._boardGeometry) Rack._boardGeometry = new THREE.PlaneBufferGeometry(1, 1, 1, 1)
43
+ if (!Rack._boardGeometry) Rack._boardGeometry = new THREE.PlaneGeometry(1, 1, 1, 1)
44
44
 
45
45
  return Rack._boardGeometry
46
46
  }
@@ -110,10 +110,7 @@ export default class Rack extends Object3D {
110
110
  for (var i = 0; i < shelves; i++) shelfLocIds.push(i + 1)
111
111
  } else shelfLocIds = shelfLocations.split(/\s*,\s*/)
112
112
 
113
- var shelfBins = binLocations
114
- .trim()
115
- .split('\n')
116
- .reverse()
113
+ var shelfBins = binLocations.trim().split('\n').reverse()
117
114
 
118
115
  for (var i = 0; i < shelves; i++) {
119
116
  let bottom = -depth * shelves * 0.5
package/src/sphere.js CHANGED
@@ -54,7 +54,7 @@ export default class Sphere extends Mesh {
54
54
  createSphere(rx) {
55
55
  let { fillStyle = 'lightgray' } = this.model
56
56
 
57
- this.geometry = new THREE.SphereBufferGeometry(rx, 20, 20)
57
+ this.geometry = new THREE.SphereGeometry(rx, 20, 20)
58
58
  this.material = new THREE.MeshStandardMaterial({
59
59
  color: fillStyle,
60
60
  side: THREE.FrontSide
package/src/stock.js CHANGED
@@ -29,7 +29,8 @@ export default class Stock extends Mesh {
29
29
  this._visualizer.legendTarget &&
30
30
  this._visualizer.legendTarget.get('status')
31
31
  )
32
- ) return this.userDefineDefaultMaterial
32
+ )
33
+ return this.userDefineDefaultMaterial
33
34
 
34
35
  var stockStatus = this._visualizer.legendTarget.get('status')
35
36
  var range = stockStatus.ranges[index]
@@ -42,9 +43,9 @@ export default class Stock extends Mesh {
42
43
  roughness: 0.7
43
44
  })
44
45
  }
45
-
46
- var alpha=range.color.replace(/^.*,(.+)\)/,'$1')
47
- if(alpha>0 && alpha<1){
46
+
47
+ var alpha = range.color.replace(/^.*,(.+)\)/, '$1')
48
+ if (alpha > 0 && alpha < 1) {
48
49
  this.stockMaterials[index].opacity = alpha
49
50
  this.stockMaterials[index].transparent = true
50
51
  }
@@ -53,7 +54,7 @@ export default class Stock extends Mesh {
53
54
  }
54
55
 
55
56
  static get stockGeometry() {
56
- if (!Stock._geometry) Stock._geometry = new THREE.BoxBufferGeometry(1, 1, 1)
57
+ if (!Stock._geometry) Stock._geometry = new THREE.BoxGeometry(1, 1, 1)
57
58
 
58
59
  return Stock._geometry
59
60
  }
@@ -86,8 +87,8 @@ export default class Stock extends Mesh {
86
87
  side: THREE.FrontSide,
87
88
  roughness: 0.7
88
89
  })
89
- var alpha=defaultColor.replace(/^.*,(.+)\)/,'$1')
90
- if(alpha>0 && alpha<1){
90
+ var alpha = defaultColor.replace(/^.*,(.+)\)/, '$1')
91
+ if (alpha > 0 && alpha < 1) {
91
92
  this._visualizer._default_material.opacity = alpha
92
93
  this._visualizer._default_material.transparent = true
93
94
  }
@@ -111,11 +112,11 @@ export default class Stock extends Mesh {
111
112
  this._visualizer._empty_material = new THREE.MeshStandardMaterial({
112
113
  color: defaultColor
113
114
  })
114
- var alpha=defaultColor.replace(/^.*,(.+)\)/,'$1')
115
- if(alpha>0 && alpha<1){
115
+ var alpha = defaultColor.replace(/^.*,(.+)\)/, '$1')
116
+ if (alpha > 0 && alpha < 1) {
116
117
  this._visualizer._empty_material.opacity = alpha
117
118
  this._visualizer._empty_material.transparent = true
118
- }else{
119
+ } else {
119
120
  this._visualizer._empty_material.opacity = 0.33
120
121
  this._visualizer._empty_material.transparent = true
121
122
  }
@@ -208,7 +209,7 @@ export default class Stock extends Mesh {
208
209
  this.material = this._hideEmptyStock ? this.emptyMaterial : this.userDefineDefaultMaterial
209
210
  }
210
211
  })
211
- if(!isInRanges){
212
+ if (!isInRanges) {
212
213
  this.material = this.userDefineDefaultMaterial
213
214
  }
214
215
  }
@@ -42,7 +42,7 @@ export default class TextTextureObject extends Object3D {
42
42
  var canvas = this._createOffcanvas(width, height)
43
43
  this._drawTextTexture(canvas, { fontColor, fontSize, font, text, lineHeight, bold, italic })
44
44
 
45
- var geometry = new THREE.BoxBufferGeometry()
45
+ var geometry = new THREE.BoxGeometry()
46
46
  var texture = new THREE.CanvasTexture(canvas)
47
47
  texture.needsUpdate = true
48
48
 
@@ -17,7 +17,7 @@
17
17
  // Pan - right mouse, or arrow keys / touch: three finger swipe
18
18
  import * as THREE from 'three'
19
19
 
20
- var ThreeControls = function(object, component) {
20
+ var ThreeControls = function (object, component) {
21
21
  this.object = object
22
22
 
23
23
  this.component = component
@@ -90,21 +90,21 @@ var ThreeControls = function(object, component) {
90
90
  // public methods
91
91
  //
92
92
 
93
- this.getPolarAngle = function() {
93
+ this.getPolarAngle = function () {
94
94
  return spherical.phi
95
95
  }
96
96
 
97
- this.getAzimuthalAngle = function() {
97
+ this.getAzimuthalAngle = function () {
98
98
  return spherical.theta
99
99
  }
100
100
 
101
- this.saveState = function() {
101
+ this.saveState = function () {
102
102
  scope.target0.copy(scope.target)
103
103
  scope.position0.copy(scope.object.position)
104
104
  scope.zoom0 = scope.object.zoom
105
105
  }
106
106
 
107
- this.reset = function() {
107
+ this.reset = function () {
108
108
  scope.target.copy(scope.target0)
109
109
  scope.object.position.copy(scope.position0)
110
110
  scope.object.zoom = scope.zoom0
@@ -118,12 +118,12 @@ var ThreeControls = function(object, component) {
118
118
  }
119
119
 
120
120
  // this method is exposed, but perhaps it would be better if we can make it private...
121
- this.update = (function() {
121
+ this.update = (function () {
122
122
  var offset = new THREE.Vector3()
123
123
 
124
124
  // so camera.up is the orbit axis
125
125
  var quat = new THREE.Quaternion().setFromUnitVectors(object.up, new THREE.Vector3(0, 1, 0))
126
- var quatInverse = quat.clone().inverse()
126
+ var quatInverse = quat.clone().invert()
127
127
 
128
128
  var lastPosition = new THREE.Vector3()
129
129
  var lastQuaternion = new THREE.Quaternion()
@@ -216,19 +216,19 @@ var ThreeControls = function(object, component) {
216
216
  }
217
217
  })()
218
218
 
219
- this.dispose = function() {}
219
+ this.dispose = function () {}
220
220
 
221
221
  //
222
222
  // event handlers - FSM: listen for events and reset state
223
223
  //
224
224
 
225
- this.onMouseDown = function(event) {}
225
+ this.onMouseDown = function (event) {}
226
226
 
227
- this.onMouseMove = function(event) {}
227
+ this.onMouseMove = function (event) {}
228
228
 
229
- this.onMouseUp = function(event) {}
229
+ this.onMouseUp = function (event) {}
230
230
 
231
- this.onDragStart = function(event) {
231
+ this.onDragStart = function (event) {
232
232
  if (this.enabled === false || this.enableRotate === false) return
233
233
 
234
234
  scope.component.stop()
@@ -252,7 +252,7 @@ var ThreeControls = function(object, component) {
252
252
  }
253
253
  }
254
254
 
255
- this.onDragMove = function(event) {
255
+ this.onDragMove = function (event) {
256
256
  if (!this.enabled) return
257
257
 
258
258
  if (event.altKey === true) state = STATE.PAN
@@ -273,7 +273,7 @@ var ThreeControls = function(object, component) {
273
273
  }
274
274
  }
275
275
 
276
- this.onDragEnd = function(event) {
276
+ this.onDragEnd = function (event) {
277
277
  if (this.enabled === false || this.enableRotate === false) return
278
278
 
279
279
  state = STATE.NONE
@@ -285,13 +285,13 @@ var ThreeControls = function(object, component) {
285
285
  // scope.update();
286
286
  }
287
287
 
288
- this.onKeyDown = function(event) {
288
+ this.onKeyDown = function (event) {
289
289
  if (this.enabled === false || this.enableKeys === false || this.enablePan === false) return
290
290
 
291
291
  handleKeyDown(event)
292
292
  }
293
293
 
294
- this.onTouchStart = function(event) {
294
+ this.onTouchStart = function (event) {
295
295
  if (this.enabled === false) return
296
296
 
297
297
  switch (event.touches.length) {
@@ -324,7 +324,7 @@ var ThreeControls = function(object, component) {
324
324
  }
325
325
  }
326
326
 
327
- this.onTouchMove = function(event) {
327
+ this.onTouchMove = function (event) {
328
328
  if (this.enabled === false) return
329
329
 
330
330
  switch (event.touches.length) {
@@ -357,7 +357,7 @@ var ThreeControls = function(object, component) {
357
357
  }
358
358
  }
359
359
 
360
- this.onTouchEnd = function(event) {
360
+ this.onTouchEnd = function (event) {
361
361
  if (this.enabled === false) return
362
362
  this.lastScale = 1
363
363
 
@@ -366,7 +366,7 @@ var ThreeControls = function(object, component) {
366
366
  state = STATE.NONE
367
367
  }
368
368
 
369
- this.doAutoRotate = function(autoRotate) {
369
+ this.doAutoRotate = function (autoRotate) {
370
370
  START_TIME = null
371
371
  this.cameraChanged = true
372
372
  this.autoRotate = autoRotate
@@ -439,7 +439,7 @@ var ThreeControls = function(object, component) {
439
439
  sphericalDelta.phi -= angle
440
440
  }
441
441
 
442
- var panLeft = (function() {
442
+ var panLeft = (function () {
443
443
  var v = new THREE.Vector3()
444
444
 
445
445
  return function panLeft(distance, objectMatrix) {
@@ -450,7 +450,7 @@ var ThreeControls = function(object, component) {
450
450
  }
451
451
  })()
452
452
 
453
- var panUp = (function() {
453
+ var panUp = (function () {
454
454
  var v = new THREE.Vector3()
455
455
 
456
456
  return function panUp(distance, objectMatrix) {
@@ -462,7 +462,7 @@ var ThreeControls = function(object, component) {
462
462
  })()
463
463
 
464
464
  // deltaX and deltaY are in pixels; right and down are positive
465
- var pan = (function() {
465
+ var pan = (function () {
466
466
  var offset = new THREE.Vector3()
467
467
 
468
468
  return function pan(deltaX, deltaY) {
@@ -705,7 +705,7 @@ ThreeControls.prototype = {} //Object.create( THREE.EventDispatcher.prototype );
705
705
  ThreeControls.prototype.constructor = ThreeControls
706
706
  Object.defineProperties(ThreeControls.prototype, {
707
707
  center: {
708
- get: function() {
708
+ get: function () {
709
709
  console.warn('THREE.OrbitControls: .center has been renamed to .target')
710
710
  return this.target
711
711
  }
@@ -714,72 +714,72 @@ Object.defineProperties(ThreeControls.prototype, {
714
714
  // backward compatibility
715
715
 
716
716
  noZoom: {
717
- get: function() {
717
+ get: function () {
718
718
  console.warn('THREE.OrbitControls: .noZoom has been deprecated. Use .enableZoom instead.')
719
719
  return !this.enableZoom
720
720
  },
721
721
 
722
- set: function(value) {
722
+ set: function (value) {
723
723
  console.warn('THREE.OrbitControls: .noZoom has been deprecated. Use .enableZoom instead.')
724
724
  this.enableZoom = !value
725
725
  }
726
726
  },
727
727
 
728
728
  noRotate: {
729
- get: function() {
729
+ get: function () {
730
730
  console.warn('THREE.OrbitControls: .noRotate has been deprecated. Use .enableRotate instead.')
731
731
  return !this.enableRotate
732
732
  },
733
733
 
734
- set: function(value) {
734
+ set: function (value) {
735
735
  console.warn('THREE.OrbitControls: .noRotate has been deprecated. Use .enableRotate instead.')
736
736
  this.enableRotate = !value
737
737
  }
738
738
  },
739
739
 
740
740
  noPan: {
741
- get: function() {
741
+ get: function () {
742
742
  console.warn('THREE.OrbitControls: .noPan has been deprecated. Use .enablePan instead.')
743
743
  return !this.enablePan
744
744
  },
745
745
 
746
- set: function(value) {
746
+ set: function (value) {
747
747
  console.warn('THREE.OrbitControls: .noPan has been deprecated. Use .enablePan instead.')
748
748
  this.enablePan = !value
749
749
  }
750
750
  },
751
751
 
752
752
  noKeys: {
753
- get: function() {
753
+ get: function () {
754
754
  console.warn('THREE.OrbitControls: .noKeys has been deprecated. Use .enableKeys instead.')
755
755
  return !this.enableKeys
756
756
  },
757
757
 
758
- set: function(value) {
758
+ set: function (value) {
759
759
  console.warn('THREE.OrbitControls: .noKeys has been deprecated. Use .enableKeys instead.')
760
760
  this.enableKeys = !value
761
761
  }
762
762
  },
763
763
 
764
764
  staticMoving: {
765
- get: function() {
765
+ get: function () {
766
766
  console.warn('THREE.OrbitControls: .staticMoving has been deprecated. Use .enableDamping instead.')
767
767
  return !this.enableDamping
768
768
  },
769
769
 
770
- set: function(value) {
770
+ set: function (value) {
771
771
  console.warn('THREE.OrbitControls: .staticMoving has been deprecated. Use .enableDamping instead.')
772
772
  this.enableDamping = !value
773
773
  }
774
774
  },
775
775
 
776
776
  dynamicDampingFactor: {
777
- get: function() {
777
+ get: function () {
778
778
  console.warn('THREE.OrbitControls: .dynamicDampingFactor has been renamed. Use .dampingFactor instead.')
779
779
  return this.dampingFactor
780
780
  },
781
781
 
782
- set: function(value) {
782
+ set: function (value) {
783
783
  console.warn('THREE.OrbitControls: .dynamicDampingFactor has been renamed. Use .dampingFactor instead.')
784
784
  this.dampingFactor = value
785
785
  }
package/src/visualizer.js CHANGED
@@ -298,7 +298,7 @@ export default class Visualizer extends ContainerAbstract {
298
298
  }
299
299
 
300
300
  _createFloor(floorMaterial, width, height, resolve) {
301
- var floorGeometry = new THREE.BoxBufferGeometry(1, 1, 1)
301
+ var floorGeometry = new THREE.BoxGeometry(1, 1, 1)
302
302
  var floor = new THREE.Mesh(floorGeometry, floorMaterial)
303
303
 
304
304
  floor.scale.set(width, height, 5)
@@ -408,7 +408,6 @@ export default class Visualizer extends ContainerAbstract {
408
408
  cameraX,
409
409
  cameraY,
410
410
  cameraZ,
411
- gammaFactor = 2,
412
411
  legendTarget,
413
412
  exposure = 2.5
414
413
  } = this.model
@@ -452,20 +451,20 @@ export default class Visualizer extends ContainerAbstract {
452
451
  context,
453
452
  precision: precision,
454
453
  alpha: true,
455
- antialias: antialias
454
+ antialias
456
455
  })
457
456
  } catch (e) {
458
457
  this._noSupportWebgl = true
459
458
  }
460
459
 
461
- if (this._noSupportWebgl) return
460
+ if (this._noSupportWebgl) {
461
+ return
462
+ }
462
463
 
463
464
  this._renderer.autoClear = true
464
465
 
465
- if (gammaFactor) {
466
- this._renderer.outputEncoding = THREE.GammaEncoding
467
- this._renderer.gammaFactor = gammaFactor
468
- }
466
+ this._renderer.outputEncoding = THREE.sRGBEncoding
467
+
469
468
  this._renderer.physicallyCorrectLights = true
470
469
  this._renderer.toneMappingExposure = Math.pow(exposure, 5.0)
471
470
 
package/src/wall.js CHANGED
@@ -39,7 +39,7 @@ export default class Wall extends Mesh {
39
39
  createWall(w, h, d) {
40
40
  let { fillStyle = 'gray' } = this.model
41
41
 
42
- this.geometry = new THREE.BoxBufferGeometry(w, d, h)
42
+ this.geometry = new THREE.BoxGeometry(w, d, h)
43
43
  this.material = new THREE.MeshStandardMaterial({ color: fillStyle, side: THREE.FrontSide })
44
44
 
45
45
  this.castShadow = true