Skip to content
Back to skills

Strata Geometry

ASecurity

Synthesizes Stage 1 parametric and procedural 3D meshes in Blender via bmesh, non-destructive modifiers, curve profiles, and Geometry Nodes while enforcing manifest bounding-box clamping, scale normalization, physical bevels, and clay-override gatekeeping. Use when executing Stage 1 (Model) of strata, replacing blockout proxies with detailed procedural geometry, modeling architecture or props with bpy, or fixing mesh silhouettes and topology in Blender.

  • 5 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 5, 2026
ai-agentspythongonodeapi

Works with

  • api

Security analysis

A100/100

Scanned December 5, 2026

npx -y skills add naddrzz/blender-strata --skill strata-geometry --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Strata Geometry?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Strata Geometry
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/naddrzz-strata-geometry/badge)](https://www.skillsdirectory.com/skills/naddrzz-strata-geometry)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: strata-geometry
description: "Synthesizes Stage 1 parametric and procedural 3D meshes in Blender via bmesh, non-destructive modifiers, curve profiles, and Geometry Nodes while enforcing manifest bounding-box clamping, scale normalization, physical bevels, and clay-override gatekeeping. Use when executing Stage 1 (Model) of strata, replacing blockout proxies with detailed procedural geometry, modeling architecture or props with bpy, or fixing mesh silhouettes and topology in Blender."
---

# Strata Stage 1: Parametric and procedural geometry

Stage 1 replaces every `00_Blockout` proxy in `scene["scene_manifest"]` with detailed procedural geometry while keeping global composition, camera framing, and neighbor clearances untouched. Do not assign colors, procedural noise, or final lights in this stage. Judging geometry under color hides pinched normals and weak silhouettes.

## Construction technique decision tree

Pick the modeling API from the physical structure of the target object:

```text
What kind of form replaces this manifest proxy?
├── Repeated modular architecture (facades, stairs, railings, roof tiles, curbstone rows)
│   └── Base unit in `bmesh` -> non-destructive `ARRAY` + `SOLIDIFY` + `BEVEL` + `WEIGHTED_NORMAL`
├── Hard-surface hero prop or recessed opening (doors, vents, bollards, utility boxes, gutters)
│   └── Direct `bmesh` extrusion/inset/boolean cutter -> `BEVEL` (angle-limited 30 deg) + `WEIGHTED_NORMAL`
├── Continuous linear conduit (cables, pipes, wires, trim moldings, hoses)
│   └── `bpy.data.curves.new(..., type='CURVE')` with spline/catenary points + `bevel_depth` (`resolution_u >= 12`)
└── Organic, flexible, or stochastic scatter (foliage, rubble, cloth sag, weathered terrain)
    └── Subdivided `bmesh` grid/hull + deterministic `DISPLACE` or `GeometryNodes` point scatter (fixed `seed`)
```

## Non-negotiable geometry rules

### 1. Clamp every mesh inside its manifest AABB (`<= +2%`)

Modifiers (`Solidify` with positive offset, `Bevel`, `Displace`) push faces outward past the proxy box, making neighboring walls, curbs, and props collide.

- Set `Solidify.offset = -1.0` (inward thickness) whenever the proxy box defines an exterior envelope.
- After adding modifiers, update `depsgraph = bpy.context.evaluated_depsgraph_get()` and read world bounds from `obj.evaluated_get(depsgraph).bound_box`. If any axis exceeds `manifest_dim * 1.02`, scale vertices inside `bmesh` (`bmesh.ops.scale`) so the evaluated mesh fits inside its reserved box while `obj.scale` remains `(1.0, 1.0, 1.0)`.
- Leave a `1.5-3.0 mm` shadow gap between separate manufactured panels instead of coplanar overlapping faces. Coplanar faces cause Z-fighting in both EEVEE and Cycles.

### 2. Normalize object scale to `(1.0, 1.0, 1.0)` on every mesh

Never leave proxy scaling (`obj.scale != (1, 1, 1)`) on a Stage 1 mesh. Unapplied non-uniform scale turns `Bevel` chamfers into skewed ellipses, breaks boolean solvers, and stretches Stage 3 `Object`-space procedural textures along the scaled axis.

Build vertices directly at meter dimensions in `bmesh`, or bake object scale into vertex coordinates immediately:

```python
import bmesh
from mathutils import Matrix

def normalize_mesh_scale(obj):
    if obj.data.users > 1:
        obj.data = obj.data.copy()  # Avoid mutating shared mesh datablocks
    sx, sy, sz = obj.scale
    bm = bmesh.new()
    bm.from_mesh(obj.data)
    bmesh.ops.transform(bm, matrix=Matrix.Diagonal((sx, sy, sz, 1.0)), verts=bm.verts)
    bm.normal_update()
    bm.to_mesh(obj.data)
    bm.free()
    obj.data.update()
    obj.scale = (1.0, 1.0, 1.0)
```

Using `bmesh.ops.transform` avoids the mode and selection side effects of `bpy.ops.object.transform_apply` in batch scripts.

### 3. Bevel every physical corner

Zero-width `90 deg` edges do not exist in physical materials and cannot catch Stage 5 grazing highlights, making detailed meshes look like low-poly primitives.

- Concrete, brick, stone, curb: `Bevel.width = 0.004-0.012` (`4-12 mm`), `segments = 2`, `limit_method = 'ANGLE'`, `angle_limit = 0.5236` (`30 deg`), `use_clamp_overlap = True`. (Note: the modifier property is `use_clamp_overlap`, not `clamp_overlap`.)
- Manufactured metal, timber, hero props: `Bevel.width = 0.0015-0.004` (`1.5-4 mm`), `segments = 2-3`, `use_clamp_overlap = True`.
- Pair every `Bevel` modifier with smooth polygon shading plus `WeightedNormal` (`keep_sharp = True` when `Bevel.harden_normals = True`) so broad flat walls stay optically flat instead of bowing across vertex normals.

### 4. Tag polygon `material_index` groups during construction

Stage 2 cannot edit mesh topology. Assign integer `face.material_index` groups (`0` = primary body, `1` = secondary trim, `2` = metallic hardware, `3` = glass or emissive lens) while creating `bmesh` faces in Stage 1, and attach named placeholder materials (`MAT_Bollard_Body`, `MAT_Bollard_Lens`). Leave placeholder shaders unstyled until Stage 2.

### 5. Link to semantic collections and record `manifest_id`

Set `obj["manifest_id"] = proxy_name` and `obj["semantic_role"] = proxy_role` so `stage_gate_audit.py` can check every mesh against its Stage 0 bounding volume. Link architecture to `01_Architecture` and props to `02_Props`. Hide `00_Blockout` (`hide_render = True`, `hide_viewport = True`) without deleting it.

## Mandatory Stage 1 gate: monochromatic clay override

Before setting `scene["synthesis_stage"] = 1`:

1. Create a temporary diagnostic material `_GATE_ClayOverride` (`Base Color = (0.18, 0.18, 0.18)` linear, `Roughness = 0.85`, `Specular IOR Level = 0.25`) and set `bpy.context.view_layer.material_override = clay_mat` under neutral evaluation lighting.
2. Run `stage_gate_audit.py` with `TARGET_STAGE = 1` and confirm `result["passed"] == True`.
3. Render `stage_01_clay.png` via `render_viewport_to_path` and inspect the frame:
   - Primary, secondary, and tertiary forms read clearly in silhouette.
   - Zero black inverted-normal patches and zero Z-fighting stripes.
   - Every grounded prop makes firm contact shadow with `ground_plane`.
4. Reset `bpy.context.view_layer.material_override = None` and remove `_GATE_ClayOverride` before entering Stage 2.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.