skeleton v6
This commit is contained in:
parent
1ddc176e7b
commit
3fd1a0b575
@ -41,11 +41,20 @@ export const drawSkeletonRidgeRoof = (roofId, canvas, textMode) => {
|
||||
const { Begin, End } = edgeResult.Edge;
|
||||
const baseLine = baseLines.find(line => isSameLine(Begin.X, Begin.Y, End.X, End.Y, line));
|
||||
|
||||
// 외곽선이 'gable'이 아닌 경우에만 해당 면의 내부선을 생성합니다.
|
||||
if (baseLine && baseLine.attributes.type !== 'gable') {
|
||||
processEavesEdge(edgeResult, skeletonLines, processedInnerEdges);
|
||||
if (baseLine) {
|
||||
const lineType = baseLine.attributes.type;
|
||||
|
||||
if (lineType === 'gable') {
|
||||
// 'gable'인 경우, 의도적으로 내부선을 생성하지 않아 빈 공간을 만듭니다.
|
||||
} else if (lineType === 'wall') {
|
||||
// TODO: 'wall' 타입에 대한 처리가 필요합니다.
|
||||
// 현재는 아무 작업도 하지 않지만, 향후 관련 로직이 이곳에 추가될 수 있습니다.
|
||||
// 예를 들어, 벽에 맞닿는 부분의 선을 다르게 처리하거나 특정 정보를 추가할 수 있습니다.
|
||||
} else {
|
||||
// 'gable' 또는 'wall'이 아닌 경우 (e.g., 'eaves') 내부선을 생성합니다.
|
||||
processEavesEdge(edgeResult, skeletonLines, processedInnerEdges);
|
||||
}
|
||||
}
|
||||
// 'gable'인 경우, 의도적으로 내부선을 생성하지 않아 빈 공간을 만듭니다.
|
||||
});
|
||||
|
||||
// --- 3. 연결이 끊어진 선(케라바로 인해 생성됨)을 찾아 연장 ---
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user