# Mesh Palettizer Web application for simplifying 3D model textures with optimized color palettes ## Purpose - Convert GLB/GLTF models to use palettized textures - Provide web interface for batch processing - Support file uploads and URL downloads for model inputs - Generate clean, simplified textures for stylized rendering ## Layout ``` conversion/ ├── context.md # This file ├── app.py # Gradio web interface ├── src/ # Core conversion library │ └── context.md # Library context ├── examples/ # Example GLB models │ ├── Duck.glb │ └── Lantern.glb └── requirements.txt # HF Spaces dependencies ``` ## Scope - In-scope: GLB/GLTF processing, batch operations, web interface - Out-of-scope: Direct Unity integration, texture detail preservation ## Entrypoints - `app.py` - Web interface with example models and batch processing - `src.convert_meshes()` - Core conversion API ## Dependencies - Internal: src module - External: trimesh, gradio, PIL, numpy, scikit-learn, requests