How senior-ict/senior works
Cubit's workflow takes phone photos of an object beside a known-size reference cube, checks framing, estimates geometry with VGGT, identifies marker bands and a proposed cut, then reconstructs and measures an approved watertight mesh. The browser front end supports framing review, cut placement and remeasurement; the compute service submits and serves pipeline jobs. The graph includes the sampled neural-network and geometry layers. Some service, stage and UI wiring is documented rather than visible in excerpts, so those links cite the README or are omitted where evidence is insufficient.
Main entry points: orchestrator.py Stage runner · app.py Job service · screens Review screens · CutReview.tsx Cut review
Components 24
Capture and review
- Job service
service/app.py - Job registry
service/jobs.py
Measurement pipeline
- Stage runner
pipeline/orchestrator.py - Framing gate
pipeline/stages/prep.py - Pipeline config
pipeline/config.py - VGGT inference
pipeline/stages/inference.py - Visual detector
pipeline/core/vlm_detect.py
Geometry processing
- Point cloud
pipeline/stages/pointcloud.py - Clean and segment
pipeline/stages/clean.py - Marker segmentation
pipeline/core/segmentation.py - 3D band detection
pipeline/core/bands3d.py - Surface reconstruction
pipeline/stages/reconstruct.py - Watertight cut
pipeline/stages/watertight.py - Volume measurement
pipeline/stages/volume.py - Mesh operations
pipeline/core/mesh.py
VGGT inference
- VGGT model
vggt/models/vggt.py - Feature aggregator
vggt/models/aggregator.py - Transformer block
vggt/layers/block.py - Point-map head
vggt/heads/dpt_head.py
Browser application
- Review screens
web/src/components/screens - Cut review
web/src/components/three/CutReview.tsx - PLY loader
web/src/components/three/usePly.ts - Web API
web/src/lib/api.ts
Other components
- Operator
Connections 29
- Operator → Review screens: submits photos
README.md - Review screens → Web API: requests jobs
README.md - Web API → Job service: calls service
- Job service → Job registry: queues work
service/app.py - Job service → Stage runner: runs stages
service/app.py - Job service → Review screens: serves artifacts
service/app.py - Review screens → Cut review: opens cut review
- Cut review → PLY loader: loads meshes
web/src/components/three/CutReview.tsx - Operator → Cut review: approves cut
README.md - Cut review → Job service: submits recut
README.md - Stage runner → Framing gate: runs framing
pipeline/orchestrator.py - Stage runner → VGGT inference: runs inference
pipeline/orchestrator.py - Stage runner → Point cloud: builds points
pipeline/orchestrator.py - Stage runner → Clean and segment: cleans points
pipeline/orchestrator.py - Stage runner → 3D band detection: detects bands
pipeline/orchestrator.py - Stage runner → Surface reconstruction: reconstructs surface
pipeline/orchestrator.py - Stage runner → Watertight cut: cuts solid
pipeline/orchestrator.py - Stage runner → Volume measurement: measures volume
pipeline/orchestrator.py - Framing gate → Visual detector: detects objects
pipeline/stages/prep.py - VGGT inference → VGGT model: runs model
pipeline/stages/inference.py - VGGT model → Feature aggregator: aggregates features
vggt/models/vggt.py - VGGT model → Point-map head: predicts maps
vggt/models/vggt.py - Feature aggregator → Transformer block: uses blocks
vggt/models/aggregator.py - Clean and segment → Marker segmentation: segments markers
pipeline/stages/clean.py - Surface reconstruction → Mesh operations: builds meshes
pipeline/stages/reconstruct.py - Watertight cut → Mesh operations: repairs and cuts
pipeline/stages/watertight.py - Volume measurement → Pipeline config: reads calibration
pipeline/stages/volume.py - Framing gate → Pipeline config: reads settings
pipeline/stages/prep.py - Marker segmentation → Pipeline config: reads thresholds
pipeline/core/segmentation.py