contour-to-mesh

contour-to-mesh is a skill for Claude Code from CheshireJCat/blender. It costs 65 tokens per session (972 once invoked), scanned A, a copy of contour-to-mesh, MIT.

A Blender workflow that builds mesh surfaces from exact 2D outlines or masks instead of generic shapes. Blender is software for creating and rendering 3D models.

In plain words
What is it for?
Turning masks into named meshes, adding controlled depth, assigning front-projected UVs, and checking the front render against the source outline.
Why use it?
It preserves the supplied front-view silhouette, so the model can match a mascot, logo, leaf, petal, or other reference shape more closely.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Turning masks into named meshes, adding controlled depth, assigning front-projected UVs, and checking the front render against the source outline.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cheshirejcat/blender/contour-to-mesh
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add CheshireJCat/blender --skill contour-to-mesh
Clone the repo
git clone --depth 1 https://github.com/CheshireJCat/blender

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for contour-to-mesh

README.md
[![agentmods](https://agentmods.dev/badge/skills/cheshirejcat/blender/contour-to-mesh/github.svg)](https://agentmods.dev/skills/cheshirejcat/blender/contour-to-mesh)
Your own site
<a href="https://agentmods.dev/skills/cheshirejcat/blender/contour-to-mesh"><img src="https://agentmods.dev/badge/skills/cheshirejcat/blender/contour-to-mesh/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for contour-to-mesh

Your own site · 80×15
<a href="https://agentmods.dev/skills/cheshirejcat/blender/contour-to-mesh"><img src="https://agentmods.dev/badge/skills/cheshirejcat/blender/contour-to-mesh.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 65 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 972 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 94% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00065 $0.00972
Opus 5 $0.00032 $0.00486
Sonnet 5 $0.00013 $0.00194
Haiku 4.5 $0.00006 $0.00097

Measured 12d ago against content hash e81995b96603, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

contour-to-mesh scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/mask_to_mesh_recipe.py, scripts/source_locked_skin_recipe.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

94% identical to contour-to-mesh — 2 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/create-3d-model/references/modules/contour-to-mesh/SKILL.md · 83 lines

How it starts

The opening of the file, as written. The whole thing — 83 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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

  1. Extract or select a clean contour/mask for one structural part.
  2. Generate a triangulated mesh recipe with scripts/mask_to_mesh_recipe.py.
  3. Run the generated Blender Python to create a named GEO_* mesh.
  4. Assign front-projected UVs immediately.
  5. Add depth only as a modifier or vertex displacement that preserves X/Z boundary positions.
  6. Validate the front render against the source mask.

Hard rules

  • Do not use radial duplication unless the manifest says the source is symmetric.
  • Do not use a generic ellipse if a contour exists.
  • Boundary vertices must keep source X/Z coordinates.
  • Depth deformation may move Y and inner vertices, but must not alter front silhouette.
  • One structural source part should become one named structural mesh.

Blender pattern

Generated mesh coordinates should map image x to Blender X and image y to Blender Z with vertical flip. Use Y only for thickness/depth.

Front-plane rotation rule

In this Blender coordinate convention, the front camera looks along the Y axis and the reference silhouette lives in the X/Z plane. Therefore 2D rotations inside the front view are rotations around the Y axis, not around Z. Use rotation_euler = (0, angle, 0) for 2D component orientation in the front projection. Z rotation spins objects into/out of screen-space incorrectly for X/Z-plane meshes.

Sources distilled

  • Blender Mesh API: create meshes from vertices/faces using from_pydata.
  • Blender BMesh: use for cleanup, triangulation, normals, smoothing.
  • OpenCV contours: detect and simplify boundaries.
  • Delaunay triangulation: useful for filled interior meshes when filtered by mask containment.

Part-inventory handoff

When masks come from source-part-segmentation, preserve the part_inventory.json names in Blender: GEO_<part_name>, MAT_<part_name>, and UV layer names. Mesh generation must record:

Read the full file on GitHub · 83 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 83 lines · 65 tokens per session scan A e81995b96603

Subscribe to this mod's changes

contour-to-mesh is a skill published in the GitHub repository CheshireJCat/blender (26 stars, last pushed 22d ago), licensed MIT. It adds 65 tokens to every session and 972 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. It is 94% identical to contour-to-mesh, differing in 2 lines, and is treated as a copy.

Related

Other skills, from other repositories

ipollowork-template-generation

Create or update reusable iPolloWork templates through conversation for Design, Slides/native editable PPT, and HyperFrames Video. Use when planning, generating, repairing, validating, or saving a template package, manifest, reusable variables, cover, slide/PPT markers, video composition, or design-system token…

Devin-AXIS/iPolloWork · 67 tokens

autonomous-modeling

Use this skill to autonomously design and model complex 3D objects in Blender. Perfect for generating chassis, robots, and environment props from natural language.

sandraschi/blender-mcp · 36 tokens

xiaohongshu-cover

An AI cover-planning tool for Xiaohongshu, a Chinese social platform for lifestyle and product content. It studies popular covers in a topic area and produces three cover concepts with examples and image-generation prompts.

redfox-data/redfox-community-dsh · 103 tokens

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…

RobLe3/cc-blender-skill · 200 tokens

mascot-logo-reconstruction

Orchestrate a fail-gated, source-locked Blender reconstruction of mascots, logos, brand avatars, and stylized flat characters from wireframes, texture packs, and orthographic views. Use when the user requires a 1:1 brand/model match rather than a plausible stylized interpretation.

RobLe3/cc-blender-skill · 66 tokens

source-part-segmentation

Segment overlapping visual parts from source images, wireframes, texture atlases, and decals before mesh reconstruction. Use when a mascot/logo/template contains touching or overlapping components and exact structural part masks are needed before contour-to-mesh, UV fitting, or landmark repair.

RobLe3/cc-blender-skill · 58 tokens