모듈 설치 영역 수정

This commit is contained in:
hyojun.choi 2025-02-21 16:02:29 +09:00
parent b0a24c7daf
commit 476e2f7cbc
2 changed files with 9 additions and 2 deletions

View File

@ -52,7 +52,7 @@ export function useModuleBasicSetting(tabNum) {
const [currentObject, setCurrentObject] = useRecoilState(currentObjectState)
const { setModuleStatisticsData } = useCircuitTrestle()
const { createRoofPolygon, createMarginPolygon } = useMode()
const { createRoofPolygon, createMarginPolygon, createPaddingPolygon } = useMode()
useEffect(() => {
// console.log('basicSetting', basicSetting)
@ -241,7 +241,13 @@ export function useModuleBasicSetting(tabNum) {
} else {
let offsetLength = canvasSetting.roofSizeSet === '3' ? -30 : (trestleDetail.eaveIntvl / 10) * -1
setSurfaceShapePattern(roof, roofDisplay.column, true, roof.roofMaterial) //패턴 변경
const offsetPoints = createMarginPolygon(createRoofPolygon(roof.getCurrentPoints()), roof.lines).vertices //안쪽 offset
let offsetPoints = null
if (['south', 'west'].includes(roof.direction)) {
offsetPoints = createPaddingPolygon(createRoofPolygon(roof.getCurrentPoints()), roof.lines).vertices //안쪽 offset
} else {
offsetPoints = createMarginPolygon(createRoofPolygon(roof.getCurrentPoints()), roof.lines).vertices //안쪽 offset
}
//모듈설치영역?? 생성
const surfaceId = uuidv4()

View File

@ -5745,5 +5745,6 @@ export function useMode() {
cutHelpLines,
createRoofPolygon,
createMarginPolygon,
createPaddingPolygon,
}
}