How alayalab/meshaxiom works
MeshAxiom is an image-to-triangle-mesh inference stack with separate material-texturing and image-enhancement capabilities. The main workflow accepts an image and face budget through the CLI, Python API, or web interface; the shared pipeline coordinates preprocessing and isolated geometry workers, then returns validated mesh artifacts. The repository also exposes agent tools and model-loading support. The graph follows explicit imports, calls, and README descriptions; unsampled operation dispatches are shown only as unverified dashed links.
Main entry points: pipeline.py Shared Pipeline · cli.py CLI · material.py Material Worker · server.py Local HTTP Server
Components 20
User Interfaces
- CLI
src/meshaxiom/cli.py - Local HTTP Server
src/meshaxiom/server.py - Agent Tools
src/meshaxiom/tools.py - Hosted Web UI
deploy/huggingface/space/app.py
Shared Runtime
- Shared Pipeline
src/meshaxiom/pipeline.py - Configuration
src/meshaxiom/config.py - Request Contracts
src/meshaxiom/contracts.py - Model Hub Loader
src/meshaxiom/hub.py
Geometry Inference
- Image Preprocessing
src/meshaxiom/preprocess.py - Worker Sessions
src/meshaxiom/session.py - Vertex Generation
src/meshaxiom/workers/vertex.py - Topology Generation
src/meshaxiom/workers/topology.py - Geometry Model State
src/meshaxiom/workers/_geometry_state.py
Material and Enhancement
- Material Worker
src/meshaxiom/workers/material.py - Camera Alignment
src/meshaxiom/material_backend/alignment.py - Mesh I/O and Validation
src/meshaxiom/material_backend/geometry.py - Texture Generation
src/meshaxiom/material_backend/pixal.py - Image Upscaling
src/meshaxiom/material_backend/superresolution.py - Enhancement Worker
src/meshaxiom/workers/superresolution.py
Other components
- User or Agent
Connections 26
- User or Agent → CLI: requests generation
README.md - User or Agent → Local HTTP Server: submits jobs
README.md - User or Agent → Hosted Web UI: uploads image
deploy/huggingface/space/app.py - CLI → Shared Pipeline: invokes operations
src/meshaxiom/cli.py - CLI → Local HTTP Server: starts server
src/meshaxiom/cli.py - CLI → Agent Tools: runs tool
src/meshaxiom/cli.py - Local HTTP Server → Shared Pipeline: runs jobs
src/meshaxiom/server.py - Hosted Web UI → Shared Pipeline: generates mesh
deploy/huggingface/space/app.py - Shared Pipeline → Configuration: loads settings
src/meshaxiom/pipeline.py - Shared Pipeline → Image Preprocessing: prepares image
src/meshaxiom/pipeline.py - Shared Pipeline → Model Hub Loader: loads model
src/meshaxiom/pipeline.py - Shared Pipeline → Worker Sessions: manages workers
src/meshaxiom/pipeline.py - Shared Pipeline → Vertex Generation: dispatches stage
src/meshaxiom/pipeline.py - Shared Pipeline → Topology Generation: dispatches stage
src/meshaxiom/pipeline.py - Vertex Generation → Geometry Model State: loads model state
src/meshaxiom/workers/vertex.py - Topology Generation → Geometry Model State: loads model state
src/meshaxiom/workers/topology.py - Shared Pipeline → Request Contracts: validates artifacts
src/meshaxiom/pipeline.py - CLI → Shared Pipeline: textures mesh
src/meshaxiom/cli.py - Shared Pipeline → Material Worker: dispatches material
- Material Worker → Camera Alignment: aligns camera
src/meshaxiom/workers/material.py - Material Worker → Mesh I/O and Validation: loads mesh
src/meshaxiom/workers/material.py - Material Worker → Texture Generation: generates texture
src/meshaxiom/workers/material.py - Texture Generation → Mesh I/O and Validation: uses mesh utilities
src/meshaxiom/material_backend/pixal.py - CLI → Shared Pipeline: enhances image
src/meshaxiom/cli.py - Shared Pipeline → Enhancement Worker: dispatches enhancement
- Enhancement Worker → Image Upscaling: uses upscaler
src/meshaxiom/workers/superresolution.py