ghbalf/freecad-ai/lattice

Claude Code and agent skill by ghbalf/freecad-ai

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Generate a 3D lattice or infill pattern inside a bounding region. Useful for lightweight structural parts.

Install

npx vskill@latest install ghbalf/freecad-ai/lattice

SKILL.md

Lattice / Infill Pattern

Generate a 3D lattice or infill pattern inside a bounding region. Useful for lightweight structural parts.

Pattern types

  • Grid: rectangular grid of holes or beams
  • Honeycomb: hexagonal pattern (strongest weight-to-strength ratio)
  • Diagonal: 45-degree crosshatch
  • Gyroid (advanced): triply periodic minimal surface

Parameters to ask (if not provided)

  • Pattern type: grid / honeycomb / diagonal
  • 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
  1. Create a sketch with a rectangular array of circles or squares
  2. Use spacing = cell_size, hole diameter = cell_size - wall_thickness
  3. Pad to height, then boolean-intersect with the bounding shape
Honeycomb
  1. Create hexagonal cells: 6 line segments per cell
  2. Hex radius = cell_size / 2
  3. Offset rows by cell_size 0.75 horizontally and cell_size sqrt(3)/2 vertically
  4. Pad and intersect with bounding shape
Diagonal crosshatch
  1. Create parallel lines at 45 degrees, spaced by cell_size
  2. Create second set at -45 degrees
  3. Lines have width = wall_thickness
  4. 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:
python
for obj in App.ActiveDocument.Objects:
if obj.TypeId == "Sketcher::SketchObject":
obj.Visibility = False

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
353
Repository forks
53
7-day trend score
0

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/ghbalf/freecad-ai/lattice/badge)](https://verified-skill.com/skills/ghbalf/freecad-ai/lattice)

Something wrong with this skill or its page? Tell us.