@eturnity/eturnity_3d 1.0.17 → 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 +16 -3
package/package.json
CHANGED
|
@@ -250,6 +250,13 @@ export default {
|
|
|
250
250
|
arg: []
|
|
251
251
|
})
|
|
252
252
|
break
|
|
253
|
+
case 'clearPanelFromChangingRoofs':
|
|
254
|
+
methodList.push({
|
|
255
|
+
name: 'clearPanelsFromChangingRoofs',
|
|
256
|
+
method: this.clearPanelsFromChangingRoofs,
|
|
257
|
+
arg: [params.roofIds]
|
|
258
|
+
})
|
|
259
|
+
break
|
|
253
260
|
}
|
|
254
261
|
return methodList
|
|
255
262
|
},
|
|
@@ -731,6 +738,15 @@ export default {
|
|
|
731
738
|
}
|
|
732
739
|
})
|
|
733
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
|
+
},
|
|
734
750
|
renderPanels() {
|
|
735
751
|
console.log('renderPanels')
|
|
736
752
|
this.clearRemovedOnes('panelsMeshes')
|
|
@@ -748,9 +764,6 @@ export default {
|
|
|
748
764
|
})
|
|
749
765
|
|
|
750
766
|
this.panels.forEach((panelPolygon) => {
|
|
751
|
-
if(panelPolygon.roof.isDirectionInclineHandleDraged){
|
|
752
|
-
return
|
|
753
|
-
}
|
|
754
767
|
//definition of the material
|
|
755
768
|
let material = this.material.panel['default_'+this.module_texture_version_id]
|
|
756
769
|
if (panelPolygon.moduleField.pvData) {
|