From 1385683bce44686fa0115b75ff52394598fd5580 Mon Sep 17 00:00:00 2001 From: ysCha Date: Tue, 14 Oct 2025 11:05:50 +0900 Subject: [PATCH] =?UTF-8?q?hipSize=20=EA=B0=84=ED=98=B9=20=EC=98=A4?= =?UTF-8?q?=EB=A5=98=EB=B0=9C=EC=83=9D=20-=20=EA=B8=B0=EB=B3=B8=EA=B0=92?= =?UTF-8?q?=200=20=EC=84=A4=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/util/qpolygon-utils.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/util/qpolygon-utils.js b/src/util/qpolygon-utils.js index 33737856..6e25c18d 100644 --- a/src/util/qpolygon-utils.js +++ b/src/util/qpolygon-utils.js @@ -7665,7 +7665,11 @@ export const drawRidgeRoof = (roofId, canvas, textMode) => { .filter((line) => (line.x2 === ridge.x1 && line.y2 === ridge.y1) || (line.x2 === ridge.x2 && line.y2 === ridge.y2)) .filter((line) => baseLines.filter((baseLine) => baseLine.x1 === line.x1 && baseLine.y1 === line.y1).length > 0) basePoints.sort((a, b) => a.line.attributes.planeSize - b.line.attributes.planeSize) - hipSize = Big(basePoints[0].line.attributes.planeSize) + if (basePoints.length > 0 && basePoints[0].line) { + hipSize = Big(basePoints[0].line.attributes.planeSize) + } else { + hipSize = Big(0) // 또는 기본값 설정 + } } hipSize = hipSize.pow(2).div(2).sqrt().round().div(10).toNumber()