@eturnity/eturnity_3d 6.46.2 → 6.46.3-EPDM-9188.0

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": "6.46.2",
4
+ "version": "6.46.3-EPDM-9188.0",
5
5
  "main": "dist/main.js",
6
6
  "scripts": {
7
7
  "dev": "vue-cli-service serve --skip-plugins @vue/cli-plugin-eslint",
@@ -33,9 +33,10 @@ export function UpdateRoofModuleFieldRelations(state) {
33
33
  //check if everypoint is in the same roof and if they are not too far from the flat surface.(at least above)
34
34
  let roofPolygonCandidates = roofPolygons.filter((roof) => {
35
35
  const intersection = intersectOutlines(moduleField.outline, roof.outline)
36
+ console.log(intersection)
36
37
  if (intersection.length == 0) return false
37
38
  const intersectionArea = calculateArea(intersection[0])
38
- return intersectionArea > 100
39
+ return intersectionArea > 100 && intersectionArea <= roof.area
39
40
  })
40
41
  //roofs on roof can lead to multiple roof under a point. moduleField is on the smallest
41
42
  let smallestRoof = null
@@ -63,7 +63,7 @@ export default {
63
63
  }
64
64
  const moduleTextureId = panelPolygon.moduleField.pvData.hasOwnProperty(
65
65
  'module_texture_version_id'
66
- )
66
+ ) && panelPolygon.moduleField.pvData.module_texture_version_id
67
67
  ? panelPolygon.moduleField.pvData.module_texture_version_id
68
68
  : 0
69
69
  let materialId = 'default_' + moduleTextureId