wireframe-to-3d
БесплатноЗапускает вложенные скриптыНе проверенConvert 2D orthographic wireframe PNG drawings to 3D Blender models exported as glTF/GLB. Use this skill whenever the user provides wireframe images…
от RobLe3★ 202 звезды на GitHubОб этом скилле
MCP backend
Use when: User provides one or more PNG wireframe images and wants a 3D model. Also use when user asks to model an object from front/side/back drawings, or to convert technical line art to glTF/GLB.
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.
Wireframe-to-3D Conversion
Convert 2D orthographic wireframe images to parametric 3D Blender models, exported as glTF 2.0 binary (.glb).
Overview
The skill drives a four-stage pipeline:
- Analyze wireframe images locally with
scripts/wireframe_analyzer.py(OpenCV → Bezier control points in JSON). - Generate Blender Python code that recreates the contours as parametric Bezier curves.
- Execute code through the selected Blender MCP backend, converting curves to meshes with PBR materials.
- Export as optimized GLB (≤ 15 MB), validating size and topology.
You (the agent) are the orchestrator. The scripts/ directory contains the only standalone code (wireframe_analyzer.py); everything else is patterns you emit and run via MCP.
Prerequisites — check first
Before any wireframe work, verify the environment:
Blender MCP is reachable. Call the selected backend's read-only scene-inspection tool. If it cannot connect, stop and tell the user:
"The selected Blender MCP backend is not reachable. Start Blender, enable its add-on, verify the configured host/port, then re-run."
Python deps for the analyzer. Run:
python3 -c "import cv2, numpy, scipy" 2>&1If it errors, run
pip install opencv-python numpy scipy Pillow(or instruct the user to).Image input. Confirm the user provided at least one PNG. Reasonable bounds: ≥ 400×400 px, black-on-white or white-on-black line art.
Decision flow
Q1: How many views?
- Single view → flat 2D extrusion only (warn the user; depth must be supplied or assumed).
- Front + side → full 3D reconstruction (silhouette × depth profile).
- Front + side + back → use back view for symmetry validation.
Q2: Detail level?
preview— RDP epsilon = 4.0, target ~1–2k tris, < 1 MB GLB.production— RDP epsilon = 2.0, target ~5–8k tris, 2–4 MB GLB. Default.high— RDP epsilon = 1.0, target ~10–20k tris, may need Decimate to stay under 15 MB.
Q3: Geometry type?
wires— frames, arms, hinges. Usebevel_depthon curves.surfaces— lenses, domes. Use lofted profiles or fill caps.hybrid— both. Default for glasses-like objects.
Q4: Real-world scale?
- If the user gave dimensions (e.g., "glasses are 140 mm wide"), use them.
- Otherwise infer from wireframe aspect ratio and assume a sensible default (140 mm width for glasses, 180 mm for helmets, etc.). Confirm with user if not obvious.
Mandatory correction loop for reference/texture-driven subjects
When user feedback says the model does not match the reference/texture, stop the normal "generate from primitives" loop and switch to reference-locked modeling:
- Count visible design parts first from the provided texture/wireframe and write the count into stdout/notes before modeling. Do not infer a radial or repeated count from symmetry; the visual design count in the source manifest is the contract.
- Use the front view as canonical. Create an image-empty/plane/reference overlay in the same front orthographic camera used for validation. Align scale, centerline, and bounding circle before adding depth.
- Trace or define 2D silhouettes in front-view X/Z first. Build mesh surfaces from those silhouettes; do not place generic ellipses and then try to texture them.
- Lock the front projection. Add depth only on the view axis after the front silhouette matches. Side/back views refine thickness and stacking but must not alter the front outline.
- Use Project-from-View-style UVs for any texture that is meant to match the front drawing. One front-facing surface should map to the corresponding texture crop 1:1.
- Render an overlay validation: reference/wireframe behind or over the model, plus a printed checklist: expected count, actual object count, face position, outer silhouette bounds, and side/back depth.
- If an iteration repeats the same error twice, consult
references/best-practices.mdand add a short durable note before another attempt.
For repeated motif subjects, create exactly the primary structural components declared by the source manifest. Name them by source-visible position or semantic role, and validate the count before export.
Stage 1 — Run the analyzer
Run the bundled analyzer once per view:
python3 ${CLAUDE_SKILL_DIR}/scripts/wireframe_analyzer.py <input.png> <output.json>
``
Установить wireframe-to-3d в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadBashGlobGrepmcp__blender__execute_blender_codemcp__blender__get_scene_infomcp__blender__get_object_infomcp__blender__get_viewport_screenshotmcp__blender__get_objects_summarymcp__blender__get_object_detail_summarymcp__blender__render_viewport_to_pathmcp__blender__search_api_docsmcp__blender_official__execute_blender_codemcp__blender_official__get_objects_summarymcp__blender_official__get_object_detail_summarymcp__blender_official__render_viewport_to_pathmcp__blender_official__search_api_docsmcp__blender__get_screenshot_of_area_as_imagemcp__blender_official__get_screenshot_of_area_as_imageВложенные файлы
FAQ
Что делает скилл wireframe-to-3d?
Convert 2D orthographic wireframe PNG drawings to 3D Blender models exported as glTF/GLB. Use this skill whenever the user provides wireframe images (technical drawings, line drawings, orthographic views, side/front/back panels) and wants to generate a 3D model, mesh, or .glb file. Triggers on phrases like "convert this wireframe to 3D", "make a 3D model from these drawings", "build a model from this wireframe", "generate GLB from these views", or any image-to-3D-mesh request involving line drawings. Make sure to use this skill even if the user does not explicitly say "wireframe" — also covers "orthographic views", "technical drawings", "line drawings of objects", "front and side views". Requires a configured Blender MCP backend (official or ahujasid) and Python with opencv-python, numpy, scipy installed.
Как установить скилл wireframe-to-3d?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл wireframe-to-3d запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic