@eturnity/eturnity_3d 1.0.11 → 1.0.13-debug

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.11",
4
+ "version": "1.0.13-debug",
5
5
  "main": "dist/main.js",
6
6
  "scripts": {
7
7
  "dev": "vue-cli-service serve --skip-plugins @vue/cli-plugin-eslint",
@@ -31,9 +31,13 @@ export function UpdateRoofModuleFieldRelations(state) {
31
31
  //check if everypoint is in the same roof and if they are not too far from the flat surface.(at least above)
32
32
  const roofPolygonCandidates = roofPolygons.filter((roof) =>
33
33
  {
34
- return moduleField.outline.every(p=>isInsidePolygon(p, roof.margins.innerOutline))
34
+ return moduleField.outline.every(p=>{
35
+ console.log(p,roof.margins.innerOutline,isInsidePolygon(p, roof.margins.innerOutline))
36
+ return isInsidePolygon(p, roof.margins.innerOutline)
37
+ })
35
38
  }
36
39
  )
40
+ console.log(roofPolygonCandidates)
37
41
  //roofs on roof can lead to multiple roof under a point. moduleField is in the smallest
38
42
  let smallestRoof = null
39
43
  for (let roof of roofPolygonCandidates) {