How nqwrc/3d-anatomy works
This is a browser-based 3D anatomy atlas: users load anatomical systems, explore structures in a Three.js viewer, search and inspect anatomy, adjust visibility and camera, and share a restorable view through the URL. The graph covers the documented model, lexicon, definitions, localization and synonym-search capabilities. Some modules were not sampled, so links to those capabilities are limited to README or tree evidence; uncertain internal calls are omitted.
Main entry points: sidebar.js Atlas interface · selection.js Structure selection · loadModel.js Model loader · main.js App startup
Components 24
Application flow
- App startup
src/main.js - Atlas interface
src/ui/sidebar.js - Search and data
src/utils/dataLoader.js - Focus handling
src/ui/focus.js
3D exploration
- 3D scene
src/viewer/createScene.js - Model loader
src/viewer/loadModel.js - Structure selection
src/viewer/selection.js - Visibility controls
src/viewer/visibility.js - Camera controls
src/viewer/camera.js - Structure callout
src/ui/callout.js - Depth control
src/ui/depthSlider.js
Anatomy data
- Anatomy catalog
src/data/anatomy.js - Definitions and lexicon
public/data/definitions.json - System index
public/data/systems.json - Names and terms
public/data/lexicon.json - Italian synonyms
public/data/synonyms.it.json - UI translations
public/data/translations - Anatomy models
public/models
View state
- Shared application state
src/state/store.js - Shareable view state
src/state/urlState.js
Other components
- Atlas user
- Browser URL
- Three.js renderer
- Draco decoder
public/draco
Connections 36
- Atlas user → Atlas interface: uses
- Atlas user → 3D scene: explores
- App startup → 3D scene: creates
- App startup → Model loader: loads systems
- App startup → Anatomy catalog: loads catalog
- App startup → Shared application state: initializes
- App startup → Shareable view state: restores view
- App startup → Atlas interface: initializes
- Atlas interface → Search and data: searches
- Atlas interface → Model loader: loads systems
- Atlas interface → Structure selection: selects structures
- Atlas interface → Visibility controls: changes visibility
- Atlas interface → Camera controls: sets view
- Atlas interface → Shared application state: reads state
- Search and data → Italian synonyms: loads terms
- Search and data → UI translations: loads dictionaries
- Search and data → Shared application state: sets search index
- Anatomy catalog → System index: loads index
- Anatomy catalog → Names and terms: loads names
- Anatomy catalog → Definitions and lexicon: loads definitions
- Model loader → Anatomy models: loads GLB
- Model loader → Draco decoder: decodes models
- Model loader → Three.js renderer: builds scene objects
- Model loader → Shared application state: updates loading state
- Structure selection → Shared application state: sets selection
- Structure selection → Visibility controls: highlights mesh
- Structure selection → Camera controls: focuses mesh
- Structure selection → Structure callout: shows details
- Structure selection → Anatomy catalog: loads definitions
- Visibility controls → Shared application state: updates part state
- Camera controls → 3D scene: moves camera
- Shareable view state → Browser URL: reads and writes hash
- Shareable view state → Shared application state: serializes state
- Shareable view state → Model loader: restores systems
- Shareable view state → Structure selection: restores selection
- Shareable view state → Visibility controls: restores visibility