/3dcodeverse:c3d-blender-formsfrom 3dcodeverse
Translates described 3D shapes into correct Blender bpy techniques. Covers building, detailing, refining, and repairing geometry while avoiding five common bpy traps caught by the harness lint.
Ships in 3dcodeverse. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Read this if you are about to write bpy code. It is two things: a form-to-technique
table so you do not build everything out of boxes, and the five traps that a static lint
already caught in this corpus, with how often. Every row and practice is an option under its
real API name — the brief and the plan say what the object is; nothing here says how it must
be built.
blender is the biggest language here (102 of 142 graded runs with gate artefacts) and its
two weakest judge criteria are assembly_fit (0.60) and geometry_detail (0.67), means
over 246 judged rounds, mined 2026-08-25. geometry_detail is what the table below moves;
assembly_fit belongs to c3d-part-contact, whose contact and weld numbers this skill
defers to rather than restating.
Say the form in words, then pick the technique; the table is a menu, not an order.
| form | technique | notes |
|---|---|---|
| revolved profile (bottle, knob, vase, wheel hub) | bmesh.ops.spin on a profile, or a SCREW modifier | one (radius, z) list is the whole shape; spin needs EDGES in geom, and remove_doubles welds the seam and the axis points |
| thread, coil, spring | SCREW modifier with screw_offset and iterations | not a stack of tori |
| swept tube (rail, cable, handle, hose) | curve with a non-zero bevel_depth; evaluate it to a mesh when a later step needs real geometry | bevel_depth = 0 is a path with no surface: it exports no node and the part is reported missing (contract.md) |
| moulding, rim, handrail, cornice | a 2-D profile curve as the bevel_object of a 3-D path curve (bevel_mode = 'OBJECT'), evaluated to a mesh | a curved path needs sampled points, not four corners |
| extruded outline with softened edges | bmesh.ops.extrude_face_region then BEVEL modifier | width must be under half the thinnest wall or the bevel eats the part |
| shell / sheet metal / panel with wall thickness | build the surface, add SOLIDIFY, then any bevel | offset=-1 grows inward, so the outer surface stays on the plan bbox; zero-thickness faces have no volume for the gate's inside test and break booleans |
| cavity, slot, groove, hole | BOOLEAN DIFFERENCE, solver EXACT or MANIFOLD | cutter must overshoot the pierced face and never be coplanar with it |
| small detail welded onto a body | BOOLEAN UNION, or build it into the same bmesh | overlapping is not merging: see c3d-part-contact |
| N identical features on one part | ARRAY or MIRROR modifier, or one python loop into one bmesh | array/mirror/screw results are ONE object, which is what you want for in-part detail |
| N identical parts | a loop that creates N top-level objects named Name_0 .. Name_N-1 | never a parent Empty; see c3d-repeats-and-mirrors |
| taper, bend, twist | bmesh vertex maths, or SIMPLE_DEFORM | pivots on the object origin; needs rings along the length |
| smooth organic body with sharp seams | SUBSURF plus edge creases (crease_edge attribute) | subsurf shrinks the part: measured on Blender 5.2.2 a level-2 subsurfed cube loses 16% of every extent. The exporter applies it, so the contract gate sees the shrunk size |
| beam between two points | build along one axis, then place from the endpoints | a quaternion from the endpoint direction (Vector.rotation_difference) avoids Euler-order mistakes; see references/form-recipes.md |
Short practices for each row are in references/form-recipes.md.
Counted over the 102 graded blender runs (mined 2026-08-25); each is a real lint:blender
finding, emitted before the build even runs.
bpy.ops.object.join — 17 runs (17%). The join result inherits the active object's
transform, and in background mode the selection is not what you think. Either set
bpy.context.view_layer.objects.active to an object with an identity transform first, or
do not join at all: build the whole part in one bmesh and skip the operator.src/model.py never imports — 7 runs (7%). src/parts/backrest.py that
nobody imports ships nothing, silently: no build error, just a missing part and a
contract/missing_part finding two gates later. model.py must from parts.backrest import build_backrest and call it exactly once. The mirror trap: a part file that calls
its own builder at module level builds the part twice and you get Backrest.001.Leg_0 .. Leg_3. An auto-suffixed Leg.001 is a different
part as far as the contract gate is concerned. (urdf_blender instead names each object
after its URDF link, and lint:urdf checks the link name appears verbatim in
model.py.)bpy.ops.object.modifier_apply out of context — 7 runs (7%). It needs the object
active and selected in OBJECT mode. Usually you should not apply at all: the exporter
runs with export_apply=True, so bevels, solidifies, arrays and mirrors are evaluated
for you. Apply only when a later step needs the real mesh — a boolean, a join, a vertex
loop — and then wrap it: with bpy.context.temp_override(object=obj, active_object=obj, selected_objects=[obj]):.primitive_cube_add(scale=...) without size=1 — the extents come out doubled.
Re-measured on Blender 5.2.2: primitive_cube_add(scale=(0.3, 0.2, 0.1)) gives dimensions
0.6 x 0.4 x 0.2; adding size=1 gives exactly 0.3 x 0.2 x 0.1. Pass size=1 and the
scale vector is the plan's extents, so you can paste the plan numbers in. Then bake
it: transform_apply(location=False, rotation=False, scale=True) — all three keywords,
always, because the ones you omit default to True and will bake the location too.Two more from the same lint that cost a whole run when they fire: indexing
bm.verts[i] without ensure_lookup_table() is an ERROR (IndexError at build time), and
bsdf.inputs["Specular"] is an ERROR (renamed to "Specular IOR Level" in 4.x/5.x).
references/form-recipes.md §1); Euler order betrays you on the second axis.obj.scale at 1 by export time. A scaled object bevels unevenly and exports its
scale baked; apply the transform before any bevel or boolean.bpy.context.selected_objects and bpy.context.object are unreliable headless. Keep
your own references to everything you create. (1 run lost time to this.)hide_render/hide_viewport.cap_ends=True), fails
silently.bmesh.ops.scale with a negative factor or after mirroring read
as dark, inside-out faces in every render (no gate measures them):
bmesh.ops.recalc_face_normals(bm, faces=bm.faces) before to_mesh.bmesh.ops.subdivide_edges on the side edges): an origin at one end gives an arc,
a centred one a C.face.material_index on the faces you choose; bmesh.ops.create_* return only verts,
so diff set(bm.faces) before and after the op to find the new faces, or set
polygon.material_index on obj.data.polygons afterwards. The census warns when a slot
is never used (contract.md, Materials).3dcode build -> 3dcode render-sheet -> 3dcode check-connectivity -> 3dcode check-contract, and read the
lint:blender findings in the build report first: they are free, static, and every one of
the five above was reported before the model was wrong.
Short options — the beam, the lathe, the swept tube, the solidify shell, the boolean with
its cutter cleaned up, and the multi-file wiring — are in references/form-recipes.md.
What SKILL.md sets; muted values are Claude Code's defaults
29 skills in this plugin
/3dcodeverseUse for ANY request to make, measure, judge or improve a 3D thing in code: a model, object or prop, a mechanism or robot with joints, a scene or environment, a shader or OpenGL effect — in Blender bpy, CadQuery, Three.js, URDF, GLSL or moderngl. This is 3D coding with the 3dcodeverse plugin: raw executable 3D code that the 3dcode instruments build, measure, render, gate and score. First step, all in ONE read: this file, skills/3d-lang-<language, hyphenated>/SKILL.md and skills/3dcodeverse/references/plan-<static|articulated|scene|graphics>.md (urdf_blender: also skills/3d-lang-blender/SKILL.md and plan-static.md, which it builds on); no c3d-* skill until a 3dcode finding or score item names its topic./3d-lang-blenderUse when writing, refining or repairing a static_object in Blender bpy (language blender): the files and builder names the lint expects, the Z-up metre frame, naming, the sandbox (allowed imports, forbidden bpy calls), the exact thresholds check-contract / check-connectivity / detail_budget measure, what the GLB exporter keeps, the Blender 5.2.2 API traps, and the 3dcode loop that ships it./3d-lang-cadqueryUse when writing, refining or repairing a static_object in CadQuery (language cadquery): the module-level `result` assembly the wrapper reads, named parts and instances, the Z-up metre frame, the lint's import and call lists, the thresholds check-contract / check-connectivity / detail_budget measure, the OCC kernel facts that fail a build, and the 3dcode loop./3d-lang-glsl-shaderUse when writing, refining or repairing a graphics-track fragment shader (language glsl_shader): the files (one include file per layer, pasted above shader.frag), the uniform block the build prepends (never redeclare it), the two entry points, the gl-frames gate thresholds (NaN, black/blown, static, flicker, low detail) with their score caps, the lint's GLSL 330 rules, the feedback buffer, the judge's named defects, and the 3dcode loop./3d-lang-opengl-pythonUse when writing, refining or repairing a graphics-track moderngl program (language opengl_python): the two entry points setup/render and their exact signatures, the sampled-time trap (render is called at t = 0, 1, 2.5, 4, 6 s, in any order), the final pass into the supplied fbo, the AST lint's import allow-list and forbidden calls, the moderngl facts that decide whether the build runs, the gl-frames gate caps, and the 3dcode loop./3d-lang-scene-blenderUse when writing, refining or repairing a scene in Blender bpy (language scene_blender): the module files and their exact functions (env height_at/build_env, zone build, asset build_<snake>), the ctx every builder receives, the Z-up frame and the Y-up plan conversion, allowed imports and the lint's forbidden table, Blender 5.2 API facts, what Cycles does with what you build, motion as keyframes/drivers, the placement and frame gate thresholds, and the 3dcode loop.npx claudepluginhub gaoypeng/3dcodeverse --plugin 3dcodeverseOther plugins' skills for the same job