@eturnity/eturnity_maths 7.2.1 → 7.2.2-EPDM-9477.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,6 +1,6 @@
1
1
  {
2
2
  "name": "@eturnity/eturnity_maths",
3
- "version": "7.2.1",
3
+ "version": "7.2.2-EPDM-9477.0",
4
4
  "author": "Eturnity Team",
5
5
  "main": "src/index.js",
6
6
  "private": false,
@@ -1,7 +1,8 @@
1
1
 
2
2
  import {
3
3
  getPointInsideOutline,
4
- isInsidePolygon
4
+ isInsidePolygon,
5
+ isSamePoint2D
5
6
  } from './geometry'
6
7
  import {getIntersections,
7
8
  getNodeList,
@@ -210,27 +210,7 @@ export class Polygon {
210
210
  if (!this.userDeactivatedPanels) {
211
211
  this.userDeactivatedPanels = []
212
212
  }
213
- const modules = this.panels.map((p) => {
214
- return {
215
- index: p.index,
216
- outline: p.outline.map((v) => [v.x, v.y, v.z]),
217
- status: p.status || "active",
218
- clipped: p.clipped === undefined ? false : p.clipped
219
- }
220
- })
221
- const user_deactivated_modules = this.userDeactivatedPanels.map((p) => {
222
- return {
223
- index: p.index,
224
- outline: p.outline.map((v) => [v.x, v.y, v.z]),
225
- }
226
- })
227
- user_deactivated_modules.forEach(p=>{
228
- modules.push({
229
- ...p,
230
- status: p.status || "user_deactivated",
231
- clipped: p.clipped === undefined ? false : p.clipped
232
- })
233
- })
213
+ const modules = this.data.modules
234
214
  return {
235
215
  module_field_uuid: this.id,
236
216
  roof_uuid: this.roof.id,