@eturnity/eturnity_3d 1.0.16 → 1.0.18
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 +1 -1
- package/src/helper/renderMixin.js +18 -3
package/package.json
CHANGED
|
@@ -143,6 +143,7 @@ export default {
|
|
|
143
143
|
},
|
|
144
144
|
renderingMethodsByEvent(geometryEvent) {
|
|
145
145
|
const name = geometryEvent.name
|
|
146
|
+
console.log(name)
|
|
146
147
|
const params = geometryEvent.params
|
|
147
148
|
let methodList = []
|
|
148
149
|
switch (name) {
|
|
@@ -249,6 +250,13 @@ export default {
|
|
|
249
250
|
arg: []
|
|
250
251
|
})
|
|
251
252
|
break
|
|
253
|
+
case 'clearPanelFromChangingRoofs':
|
|
254
|
+
methodList.push({
|
|
255
|
+
name: 'clearPanelsFromChangingRoofs',
|
|
256
|
+
method: this.clearPanelsFromChangingRoofs,
|
|
257
|
+
arg: [params.roofIds]
|
|
258
|
+
})
|
|
259
|
+
break
|
|
252
260
|
}
|
|
253
261
|
return methodList
|
|
254
262
|
},
|
|
@@ -730,7 +738,17 @@ export default {
|
|
|
730
738
|
}
|
|
731
739
|
})
|
|
732
740
|
},
|
|
741
|
+
clearPanelsFromChangingRoofs(roofIds){
|
|
742
|
+
const roofs=this.polygons.filter(polygon=>roofIds.includes(polygon.id))
|
|
743
|
+
roofs.moduleFields.forEach(mf=>mf.panels.forEach(panel=>{
|
|
744
|
+
if(this.meshes.panelsMeshes[panel.id+'_top']){
|
|
745
|
+
this.clearMesh(mesh)
|
|
746
|
+
}
|
|
747
|
+
})
|
|
748
|
+
)
|
|
749
|
+
},
|
|
733
750
|
renderPanels() {
|
|
751
|
+
console.log('renderPanels')
|
|
734
752
|
this.clearRemovedOnes('panelsMeshes')
|
|
735
753
|
//clear UserDeactivatedModules
|
|
736
754
|
Object.values(this.meshes.panelsMeshes).forEach((mesh) => {
|
|
@@ -746,9 +764,6 @@ export default {
|
|
|
746
764
|
})
|
|
747
765
|
|
|
748
766
|
this.panels.forEach((panelPolygon) => {
|
|
749
|
-
if(panelPolygon.roof.isDirectionInclineHandleDraged){
|
|
750
|
-
return
|
|
751
|
-
}
|
|
752
767
|
//definition of the material
|
|
753
768
|
let material = this.material.panel['default_'+this.module_texture_version_id]
|
|
754
769
|
if (panelPolygon.moduleField.pvData) {
|