@eturnity/eturnity_3d 7.24.0 → 7.24.2-EPDM-11143.3

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": "7.24.0",
4
+ "version": "7.24.2-EPDM-11143.3",
5
5
  "files": [
6
6
  "dist",
7
7
  "src"
@@ -15,7 +15,7 @@
15
15
  "prettier": "prettier --write \"**/*.{js,vue}\""
16
16
  },
17
17
  "dependencies": {
18
- "@eturnity/eturnity_maths": "7.24.0",
18
+ "@eturnity/eturnity_maths": "7.24.1",
19
19
  "@originjs/vite-plugin-commonjs": "1.0.3",
20
20
  "core-js": "2.6.12",
21
21
  "cors": "2.8.5",
@@ -25,19 +25,18 @@ export function UpdateRoofObstacleRelations(state, updateVersionEnable = true) {
25
25
 
26
26
  holePolygons.forEach((obstacle) => {
27
27
  //breaking circular reference for memory management
28
- for (let k in obstacle.roofs) {
29
- obstacle.roofs[k] = null
30
- }
31
28
  obstacle.roofs = []
32
29
 
33
30
  let roofsWithObstacle = roofPolygons.filter((roof) => {
31
+ if (roof.id == obstacle.id) {
32
+ return false
33
+ }
34
34
  let intersection =
35
35
  intersectOutlines(obstacle.outline, roof.outline)[0] || []
36
36
  if (intersection.length == 0) return false
37
37
  if (obstacle.layer == 'obstacle') return true
38
-
39
38
  let deltaArea = calculateArea(roof.outline) - calculateArea(intersection)
40
- if (deltaArea < 100) return false
39
+ if (deltaArea < 100 || calculateArea(intersection) < 100) return false
41
40
  return true
42
41
  })
43
42
 
@@ -56,14 +56,7 @@ export function generateNodes2D(polygons) {
56
56
  nodes2D.forEach((node2D) => {
57
57
  if (node2D.masterHandle) {
58
58
  node2D.masterHandle.open = node2D.belongsTo.some(
59
- (item) =>
60
- item.index == null ||
61
- item.polygon.outline[item.index].open ||
62
- item.polygon.outline[item.index].hasWarning
63
- )
64
- node2D.masterHandle.hasWarning = node2D.belongsTo.some(
65
- (item) =>
66
- item.index == null || item.polygon.outline[item.index].hasWarning
59
+ (item) => item.index == null || item.polygon.outline[item.index].open
67
60
  )
68
61
  node2D.masterHandle.selected = node2D.belongsTo.every(
69
62
  (item) =>