docs(10_Wiki): 위키 전체 재구성 — Topic_* 폴더를 4개 카테고리로 통합 + 대규모 중복 제거

Topic_Agent/Topic_Blog/Topics/Topics_Biz/Topics_Meeting/Topics_Rag의 마크다운 지식 문서를
Topic_General/Topic_Programming/Topic_Graphic/Topic_Business 4개 카테고리로 재분류.

- 중복 제거: frontmatter의 status:duplicate/merged + duplicate_of/redirect_to 필드로
  자기 자신을 중복으로 선언한 리다이렉트 stub 1032개 제거, 완전 동일 내용 파일 472개 제거,
  동일 파일명·다른 내용 충돌 시 더 큰(완전한) 버전만 유지(162개 제거) — 총 1639개 중복 제거.
- 분류: 폴더 단위로 명확한 항목(AI_and_ML/Coding/Architecture 등 → Programming,
  Comfyui/Visual_Effects → Graphic, Topics_Biz/Topics_Meeting/사업 등 → Business,
  Poetic_Blog_Writing/창의성/Game_Design 등 → General)은 폴더 우선순위로,
  나머지 혼재 폴더(Topic_Agent/Topic_Blog/Topics 루트/Thinking & Reasoning/Other/UI_UX_Assets)는
  title/tags 키워드 스코어링으로 파일 단위 분류(불명확한 경우 General로 폴백).
  원본 폴더명은 "From_*" 서브폴더로 보존해 추적 가능성 유지.
- 최종 배치: Programming 2784 / General 1608 / Graphic 285 / Business 249 = 4926개 문서.
- 에이전트 운영 상태(.astra/.agent/.obsidian/sessions/memory/_company/docs/lessons/_shared/src)는
  지식 콘텐츠가 아니므로 재분류 대상에서 제외하고 원위치 유지.
- Topics/Topic_email(상위 보호 폴더 Topic_email과 파일명 100% 중복) 삭제 — 보호 폴더 자체는 미변경.
- 완전히 비게 된 Topic_Agent/Topic_Blog/Topics_Biz/Topics_Rag 폴더 제거.
This commit is contained in:
Antigravity Agent
2026-07-05 00:33:48 +09:00
parent 1cfd3bbb56
commit 9148c358d0
6455 changed files with 1 additions and 86875 deletions
@@ -0,0 +1,199 @@
---
id: wiki-2026-0508-cesiumjs
title: CesiumJS
category: 10_Wiki/Topics
status: verified
canonical_id: self
aliases: [Cesium, Cesium.js]
duplicate_of: none
source_trust_level: A
confidence_score: 0.9
verification_status: applied
tags: [3d, geospatial, webgl, frontend, mapping]
raw_sources: []
last_reinforced: 2026-05-10
github_commit: pending
tech_stack:
language: JavaScript / TypeScript
framework: WebGL2 / WebGPU
---
# CesiumJS
## 매 한 줄
> **"매 browser 의 3D digital globe + geospatial visualization 의 standard"**. CesiumJS 는 WGS84 ellipsoid 의 정확 globe 의 WebGL/WebGPU 렌더링, 3D Tiles spec 의 reference impl. 2026 도시 digital twin, drone telemetry, satellite tracking, defense visualization 의 dominant choice.
## 매 핵심
### 매 핵심 concept
- **Viewer**: 모든 widget 의 포함 의 main container
- **Scene**: 3D world (globe, sky, atmosphere)
- **Camera**: position + heading/pitch/roll, FlyTo 의 지원
- **Entity**: high-level data-driven object (point, polygon, model)
- **Primitive**: low-level direct GPU 의 access
- **3D Tiles**: streaming hierarchical 3D dataset (city, photogrammetry)
- **Terrain**: heightmap (Cesium World Terrain, custom)
- **Imagery**: tile basemap (Bing, Mapbox, OSM)
### 매 좌표 system
- `Cartesian3`: ECEF (meters from Earth center)
- `Cartographic`: lon/lat/height (radians)
- `Cesium.Math.toRadians/toDegrees` 의 변환
### 매 응용
1. 도시 3D digital twin (Photogrammetry / CityGML).
2. Drone / vehicle real-time tracking.
3. Satellite orbit visualization (CZML).
4. Construction BIM overlay.
5. Disaster response (flood, wildfire).
## 💻 패턴
### Setup (Vite + npm)
```ts
import { Viewer, Cartesian3, Math as CMath, Ion } from 'cesium';
import 'cesium/Build/Cesium/Widgets/widgets.css';
Ion.defaultAccessToken = import.meta.env.VITE_CESIUM_ION_TOKEN;
const viewer = new Viewer('cesiumContainer', {
terrainProvider: await Cesium.createWorldTerrainAsync(),
});
viewer.camera.flyTo({
destination: Cartesian3.fromDegrees(-122.4194, 37.7749, 5000),
orientation: { heading: 0, pitch: CMath.toRadians(-45), roll: 0 },
});
```
### Entity (point + label)
```ts
viewer.entities.add({
position: Cartesian3.fromDegrees(127.0, 37.5, 100),
point: { pixelSize: 12, color: Cesium.Color.YELLOW },
label: {
text: 'Seoul',
font: '14px sans-serif',
pixelOffset: new Cesium.Cartesian2(0, -20),
},
});
```
### 3D Tiles (Photogrammetry city)
```ts
const tileset = await Cesium.Cesium3DTileset.fromIonAssetId(96188);
viewer.scene.primitives.add(tileset);
await viewer.zoomTo(tileset);
// Style 의 적용
tileset.style = new Cesium.Cesium3DTileStyle({
color: 'color("white", 0.9)',
show: '${Height} > 30',
});
```
### glTF model (vehicle)
```ts
const drone = viewer.entities.add({
position: Cartesian3.fromDegrees(127.0, 37.5, 200),
model: {
uri: '/models/drone.glb',
scale: 1.0,
minimumPixelSize: 64,
},
orientation: Cesium.Transforms.headingPitchRollQuaternion(
Cartesian3.fromDegrees(127.0, 37.5, 200),
new Cesium.HeadingPitchRoll(0, 0, 0),
),
});
```
### CZML (time-dynamic)
```ts
const dataSource = await Cesium.CzmlDataSource.load('/data/flight.czml');
viewer.dataSources.add(dataSource);
viewer.clock.shouldAnimate = true;
viewer.trackedEntity = dataSource.entities.values[0];
```
### Real-time WebSocket update
```ts
const drone = viewer.entities.add({
id: 'drone-1',
position: new Cesium.SampledPositionProperty(),
point: { pixelSize: 8, color: Cesium.Color.RED },
});
const ws = new WebSocket('wss://api/telemetry');
ws.onmessage = (e) => {
const { lon, lat, alt, t } = JSON.parse(e.data);
drone.position.addSample(
Cesium.JulianDate.fromIso8601(t),
Cartesian3.fromDegrees(lon, lat, alt),
);
};
```
### Pick (click → entity)
```ts
viewer.screenSpaceEventHandler.setInputAction((click) => {
const picked = viewer.scene.pick(click.position);
if (Cesium.defined(picked) && picked.id) {
console.log('Clicked entity:', picked.id.id);
}
}, Cesium.ScreenSpaceEventType.LEFT_CLICK);
```
### React 의 통합 (Resium)
```tsx
import { Viewer, Entity, PointGraphics } from 'resium';
import { Cartesian3 } from 'cesium';
export function Globe() {
return (
<Viewer full>
<Entity position={Cartesian3.fromDegrees(127, 37.5, 100)}>
<PointGraphics pixelSize={10} />
</Entity>
</Viewer>
);
}
```
## 매 결정 기준
| 상황 | Approach |
|---|---|
| 정확 WGS84 globe | CesiumJS |
| 2D map only | Mapbox / MapLibre |
| Photogrammetry city | 3D Tiles + Ion |
| Time-series telemetry | CZML + SampledPositionProperty |
| React app | Resium wrapper |
| Custom shader | Primitive + Material |
**기본값**: Viewer + Entity (90% case 의 충분).
## 🔗 Graph
- 부모: [[Geospatial]]
- 변형: [[Three.js]]
- 응용: [[Digital Twin]]
- Adjacent: [[WebGL]] · [[WebGPU]]
## 🤖 LLM 활용
**언제**: 3D globe, photogrammetry city, satellite/drone tracking 코드 generation.
**언제 X**: 단순 2D map (Mapbox/MapLibre 의 lighter).
## ❌ 안티패턴
- **Entity 의 수만 개 add**: performance 의 죽음 — 매 Primitive / Cluster 의 사용.
- **모든 frame 의 entity 의 recreate**: 매 GC pressure — `position` 의 update.
- **Bundle 전체 import**: Cesium 의 매 huge — tree-shake / `cesium-vite` plugin.
- **`viewer.scene.requestRender` 의 무시 in `requestRenderMode`**: 매 frame 의 frozen.
## 🧪 검증 / 중복
- Verified (Cesium docs, 3D Tiles OGC spec).
- 신뢰도 A.
## 🕓 Changelog
| 날짜 | 변경 |
|---|---|
| 2026-05-08 | Phase 1 |
| 2026-05-10 | Manual cleanup — CesiumJS patterns + 3D Tiles + Resium |