Spaces:
Sleeping
Sleeping
File size: 720 Bytes
346b70f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
# Mesh Module
Apply texture atlases to 3D meshes
## Purpose
- Remap mesh UVs to atlas coordinates
- Transform meshes with new textures
## Layout
```
mesh/
βββ context.md # This file
βββ __init__.py # API: apply_atlas()
βββ uvmapper.py # UV remapping logic
```
## Scope
- In-scope: UV remapping, mesh transformation, vertex duplication
- Out-of-scope: Mesh loading, color extraction
## Entrypoints
- `apply_atlas(mesh, atlas, color_to_uv, mapper, face_colors)` - Main application
- `apply_atlas_to_mesh(mesh, atlas, color_to_uv, mapper, face_colors)` - Detailed UV remapping with cached colors
## Dependencies
- Internal: extraction.reader (for get_face_colors)
- External: NumPy, trimesh |