원본 단면 구조선 114쌍과 공동구 상세 윤곽을 3D 데이터로 구성
This commit is contained in:
1 parent
39231d52c1
commit
9072507868
2 files changed
+6210
No files matched your search
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,19 @@
|
||||
import data from './block7.json'
|
||||
|
||||
export const model = data
|
||||
export const groups = [...new Set(data.parts.map(p => p.group))]
|
||||
export const palette = ['#778c83', '#839b91', '#839b91', '#acb8b0', '#9b927e', '#79968d', '#79968d', '#aab5ad', '#7f9588', '#b1a082', '#b1a082']
|
||||
export function profileVertices(part, section) {
|
||||
const z = data.sectionStations[section] - data.sectionStations[0] - 10
|
||||
return part[section === 0 ? 'a' : 'b'].map(([x, el]) => [x, el - 100, z])
|
||||
}
|
||||
export function partDimensions(part) {
|
||||
const points = [...part.a, ...part.b]
|
||||
const width = Math.max(...points.map(p => p[0])) - Math.min(...points.map(p => p[0]))
|
||||
const elevation = [Math.min(...points.map(p => p[1])), Math.max(...points.map(p => p[1]))]
|
||||
return { width, elevation, length: null, sourceStations: data.sectionStations }
|
||||
}
|
||||
export function exportModel(hidden) {
|
||||
const visibleParts = data.parts.filter(p => !hidden.has(p.id))
|
||||
return { ...data, parts: visibleParts, description: '단면 윤곽 3D 배치. 평면 위치·단면간 연결 미확정. 부재 체적 아님.', coordinateSystem: 'X=단면 횡방향(m), Y=EL(m), Z=단면 STA 차(m); 실제 평면 좌표 미확정' }
|
||||
}
|
||||
Reference in new issue
Block a user