@eturnity/eturnity_maths
Advanced tools
Comparing version 6.34.3-3d-qa-6.37.0.0 to 6.34.3-3d-qa-6.37.0.1
{ | ||
"name": "@eturnity/eturnity_maths", | ||
"version": "6.34.3-3d-qa-6.37.0.0", | ||
"version": "6.34.3-3d-qa-6.37.0.1", | ||
"author": "Eturnity Team", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -11,3 +11,4 @@ import { | ||
isClockWise, | ||
calculateArea | ||
calculateArea, | ||
getConcaveOutline | ||
} from '../../geometry' | ||
@@ -77,3 +78,14 @@ import { maximumGapLimit } from '../../config' | ||
polygon=updateMarginOutlinePolygon(polygon) | ||
if(polygon.layer=="moduleField"){ | ||
let trimedOutline=[] | ||
if(polygon.panels.length>0){ | ||
trimedOutline = getConcaveOutline(polygon.panels,polygon.panels[0].outline) | ||
trimedOutline = trimedOutline.map(p=>{return{ | ||
x:p.x, | ||
y:p.y, | ||
z:verticalProjectionOnPlane(p,polygon.roof.normalVector,polygon.roof.flatOutline[0]).z | ||
}}) | ||
} | ||
polygon.trimedOutline = trimedOutline | ||
} | ||
return polygon | ||
@@ -80,0 +92,0 @@ } |
102165
3177
2
262