Region: existing object to fill, or bounding box dimensions
Cell size: distance between pattern centers (default 10mm)
Wall thickness: thickness of lattice walls/beams (default 1.5mm)
Height/depth: extrusion height of the pattern
Construction approach
Grid pattern
Create a sketch with a rectangular array of circles or squares
Use spacing = cell_size, hole diameter = cell_size - wall_thickness
Pad to height, then boolean-intersect with the bounding shape
Honeycomb
Create hexagonal cells: 6 line segments per cell
Hex radius = cell_size / 2
Offset rows by cell_size * 0.75 horizontally and cell_size * sqrt(3)/2 vertically
Pad and intersect with bounding shape
Diagonal crosshatch
Create parallel lines at 45 degrees, spaced by cell_size
Create second set at -45 degrees
Lines have width = wall_thickness
Pad and intersect
Important
Always create the lattice larger than the target region, then use boolean intersection to trim
Label clearly: "Lattice Grid 10mm" etc.
For 3D printing, ensure wall_thickness >= 2x nozzle diameter (typically >= 0.8mm)
After construction, hide all sketches for a clean viewport:
for obj in App.ActiveDocument.Objects:
if obj.TypeId == "Sketcher::SketchObject":
obj.Visibility = False
1---2name: lattice3description: Lattice / Infill Pattern4---5# Lattice / Infill Pattern67Generate a 3D lattice or infill pattern inside a bounding region. Useful for lightweight structural parts.89## Pattern types10- **Grid**: rectangular grid of holes or beams11- **Honeycomb**: hexagonal pattern (strongest weight-to-strength ratio)12- **Diagonal**: 45-degree crosshatch13- **Gyroid** (advanced): triply periodic minimal surface1415## Parameters to ask (if not provided)16- **Pattern type**: grid / honeycomb / diagonal17- **Region**: existing object to fill, or bounding box dimensions18- **Cell size**: distance between pattern centers (default 10mm)19- **Wall thickness**: thickness of lattice walls/beams (default 1.5mm)20- **Height/depth**: extrusion height of the pattern2122## Construction approach2324### Grid pattern251. Create a sketch with a rectangular array of circles or squares262. Use spacing = cell_size, hole diameter = cell_size - wall_thickness273. Pad to height, then boolean-intersect with the bounding shape2829### Honeycomb301. Create hexagonal cells: 6 line segments per cell312. Hex radius = cell_size / 2323. Offset rows by cell_size * 0.75 horizontally and cell_size * sqrt(3)/2 vertically334. Pad and intersect with bounding shape3435### Diagonal crosshatch361. Create parallel lines at 45 degrees, spaced by cell_size372. Create second set at -45 degrees383. Lines have width = wall_thickness394. Pad and intersect4041## Important42- Always create the lattice larger than the target region, then use boolean intersection to trim43- Label clearly: "Lattice Grid 10mm" etc.44- For 3D printing, ensure wall_thickness >= 2x nozzle diameter (typically >= 0.8mm)45- After construction, hide all sketches for a clean viewport:46```python47for obj in App.ActiveDocument.Objects:48 if obj.TypeId == "Sketcher::SketchObject":49 obj.Visibility = False50```
Run npx skillmds@latest add ghbalf/lattice in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Lattice / Infill Pattern It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Capability flags: docs only. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
ghbalf (@ghbalf) published this skill. Their other Agent Skills are listed on their SkillMD profile.