@eturnity/eturnity_3d 1.0.33 → 1.0.35
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": "@eturnity/eturnity_3d",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.35",
|
|
5
5
|
"main": "dist/main.js",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"dev": "vue-cli-service serve --skip-plugins @vue/cli-plugin-eslint",
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
"@eturnity/eturnity_maths": "^1.0.2",
|
|
12
12
|
"axios": "^1.3.2",
|
|
13
13
|
"cors": "^2.8.5",
|
|
14
|
+
"core-js": "^2.6.12",
|
|
14
15
|
"earcut": "^2.2.4",
|
|
15
16
|
"express": "^4.18.2",
|
|
16
17
|
"geo-three": "^0.1.11",
|
|
@@ -324,17 +324,20 @@ export default {
|
|
|
324
324
|
//roofs
|
|
325
325
|
let mesh=this.meshes.roofMeshes[roof.id]
|
|
326
326
|
mesh.material=this.material.roof
|
|
327
|
-
this.material.roof
|
|
327
|
+
console.log(this.material.roof)
|
|
328
|
+
if(this.material.roof.project){
|
|
329
|
+
this.material.roof.project(mesh)
|
|
330
|
+
}
|
|
328
331
|
//obstacle on roof
|
|
329
332
|
roof.holes.filter(p=>p.layer=="obstacle").forEach(obstacle=>{
|
|
330
333
|
let meshObstacle=this.meshes.obstacleMeshes[obstacle.id + '-' + roof.id + '_top']
|
|
331
334
|
meshObstacle.material=this.material.roof
|
|
332
|
-
this.material.roof.project(meshObstacle)
|
|
335
|
+
if(this.material.roof.project) this.material.roof.project(meshObstacle)
|
|
333
336
|
})
|
|
334
337
|
})
|
|
335
338
|
//background tile
|
|
336
339
|
this.meshes.backgroundMesh.material=this.material.roof
|
|
337
|
-
this.material.roof.project(this.meshes.backgroundMesh)
|
|
340
|
+
if(this.material.roof.project) this.material.roof.project(this.meshes.backgroundMesh)
|
|
338
341
|
},
|
|
339
342
|
renderBase() {
|
|
340
343
|
//rendering of walls
|
|
@@ -448,7 +451,7 @@ export default {
|
|
|
448
451
|
mesh.geometry = geometry
|
|
449
452
|
if(this.material.roof){
|
|
450
453
|
mesh.material=this.material.roof
|
|
451
|
-
this.material.roof.project(mesh)
|
|
454
|
+
if(this.material.roof.project) this.material.roof.project(mesh)
|
|
452
455
|
}
|
|
453
456
|
mesh.frustumCulled = false
|
|
454
457
|
mesh.updateMatrix()
|
|
@@ -466,7 +469,7 @@ export default {
|
|
|
466
469
|
this.scene.add(mesh)
|
|
467
470
|
if(this.material.roof){
|
|
468
471
|
mesh.material=this.material.roof
|
|
469
|
-
this.material.roof.project(mesh)
|
|
472
|
+
if(this.material.roof.project) this.material.roof.project(mesh)
|
|
470
473
|
}
|
|
471
474
|
mesh.frustumCulled = false
|
|
472
475
|
this.meshes.roofMeshes[roofPolygon.id] = mesh
|
|
@@ -700,7 +703,7 @@ export default {
|
|
|
700
703
|
geometrySide.dispose()
|
|
701
704
|
if(this.material.roof){
|
|
702
705
|
mesh.material=this.material.roof
|
|
703
|
-
this.material.roof.project(mesh)
|
|
706
|
+
if(this.material.roof.project) this.material.roof.project(mesh)
|
|
704
707
|
}
|
|
705
708
|
mesh.matrixAutoUpdate = false
|
|
706
709
|
meshSide.matrixAutoUpdate = false
|