contour-to-mesh
Installation
SKILL.md
MCP backend
Use when: Source-locked contour-derived meshes, silhouette-first modeling, triangulated mask/contour surfaces, mesh generation from OpenCV contours, or replacing generic ellipses/primitives with measured shapes.
Before the first Blender call, read ../text-to-blender/references/mcp-backends.md. Prefer official MCP for shared capabilities; preserve the selected backend for the whole task. Tool names in recipes are client/legacy examples: map them through that reference and its agent-host guide.
Contour to Mesh
Use this when a reference silhouette is the contract. The mesh starts as a filled 2D contour in front-view X/Z, then gets shallow Y depth/crown after validation.
Workflow
- Extract or select a clean contour/mask for one structural part.
- Generate a triangulated mesh recipe with
scripts/mask_to_mesh_recipe.py. - Run the generated Blender Python to create a named
GEO_*mesh. - Assign front-projected UVs immediately.
- Add depth only as a modifier or vertex displacement that preserves X/Z boundary positions.
- Validate the front render against the source mask.