How umurotti/3d-visualizer works
This is a Flask-backed 3D visualizer: a Python caller submits meshes, point clouds, camera frustums, and axes; the server holds the current scene; a browser polls that state and renders it with Three.js. Browser controls support orbiting and visibility toggles, while scene rendering covers meshes, point clouds, frustums, and coordinate axes. The graph reflects the sampled client, server, and browser code plus README capabilities; the HTML template and some wiring were not sampled, so only documented or directly visible relationships are shown.
Main entry points: scene.js Scene Setup · api.js Scene Polling · app.py HTTP API · main.js Browser Startup
Components 14
Python API
- Online Viewer Client
viewer_client.py
Flask Service
- HTTP API
app.py - Scene State
app.py
Browser Viewer
- Viewer Page
templates/viewer.html - Browser Startup
static/js/main.js - Scene Polling
static/js/api.js - Orbit Controls
static/js/controls.js
3D Rendering
- Scene Setup
static/js/scene.js - Mesh Rendering
static/js/scene.js - Point Rendering
static/js/scene.js - Frustum Rendering
static/js/scene.js - Coordinate Axes
static/js/scene.js - Labels
static/js/utils.js
Other components
- Python Caller
Connections 20
- Python Caller → Online Viewer Client: uses
README.md - Online Viewer Client → HTTP API: posts scene updates
viewer_client.py - HTTP API → Scene State: updates scene state
app.py - HTTP API → Scene State: reads scene state
app.py - HTTP API → Viewer Page: serves page
app.py - Viewer Page → Browser Startup: loads viewer
README.md - Browser Startup → Scene Setup: initializes and animates
static/js/main.js - Browser Startup → Orbit Controls: sets up controls
static/js/main.js - Browser Startup → Scene Polling: starts polling
static/js/main.js - Scene Polling → HTTP API: fetches scene
static/js/api.js - Scene Polling → Mesh Rendering: sets meshes
static/js/api.js - Scene Polling → Point Rendering: sets point clouds
static/js/api.js - Scene Polling → Frustum Rendering: updates frustums
static/js/api.js - Scene Polling → Coordinate Axes: updates axes
static/js/api.js - Orbit Controls → Scene Setup: controls camera
static/js/main.js - Scene Setup → Labels: creates labels
static/js/scene.js - Mesh Rendering → Scene Setup: adds objects
static/js/scene.js - Point Rendering → Scene Setup: adds objects
static/js/scene.js - Frustum Rendering → Scene Setup: adds lines
static/js/scene.js - Coordinate Axes → Scene Setup: adds helpers
static/js/scene.js