dev #223

Merged
ysCha merged 4 commits from dev into prd-deploy 2025-07-21 15:37:13 +09:00
Showing only changes of commit 0bea975130 - Show all commits

View File

@ -833,12 +833,17 @@ export const usePolygon = () => {
return !(range1.max < range2.min || range2.max < range1.min)
}
polygonLines.forEach((line) => {
line.need = true
})
// innerLines와 polygonLines의 겹침을 확인하고 type 변경
innerLines.forEach((innerLine) => {
polygonLines.forEach((polygonLine) => {
if (checkLineOverlap(innerLine, polygonLine)) {
// innerLine의 type을 polygonLine의 type으로 변경
if (polygonLine.attributes?.type && innerLine.attributes) {
polygonLine.need = false
innerLine.attributes.type = polygonLine.attributes.type
}
}
@ -846,6 +851,7 @@ export const usePolygon = () => {
})
const roofs = []
polygonLines = polygonLines.filter((line) => line.need)
//polygonLines를 순회하며 innerLines와 교차하는 점을 line의 속성에 배열로 저장한다.
polygonLines.forEach((line) => {