implicit-cad
implicit-cad lets you build and modify 3D CAD geometry using GLSL signed-distance field expressions. Rather than traditional CAD interfaces, you describe shapes mathematically and watch them render in real time. Perfect for procedural design, parametric modeling, and exploring computational geometry.
implicit-cad lets you build and modify 3D CAD geometry using GLSL signed-distance field expressions. Rather than traditional CAD interfaces, you describe shapes mathematically and watch them render in real time. Perfect for procedural design, parametric modeling, and exploring computational geometry.
AI-generated summary based on this skill's SKILL.md
Install
earthtojake/text-to-cad/implicit-cad · repository language: JavaScript
git clone https://github.com/earthtojake/text-to-cad
cp -r text-to-cad/skills/implicit-cad ~/.claude/skills/implicit-cadFrequently asked questions
AI-generated answers based on this skill's SKILL.md and metadata
What is implicit-cad and how does it work?
implicit-cad lets you build and modify 3D CAD geometry using GLSL signed-distance field expressions. Rather than traditional CAD interfaces, you describe shapes mathematically and watch them render in real time. Perfect for procedural design, parametric modeling, and exploring computational geometry.
Can I create implicit.js files and use them in a CAD viewer?
Yes. implicit-cad lets you write implicit.js and implicit.mjs modules that define your geometry as GLSL signed-distance fields. You can then render and visualize these implicit models directly in the browser CAD viewer using raymarching techniques.
What file formats can I export implicit models to?
implicit-cad supports exporting implicit models to mesh formats including GLB, STL, and 3MF. This lets you take your procedurally-defined geometry and use it in other 3D applications or for manufacturing.
How do I build parametric and animated 3D shapes with implicit-cad?
implicit-cad lets you build parametric and animated 3D shapes with procedural coloring by writing shader-based CAD primitives in GLSL. You can define smooth boolean operations, lattice patterns, TPMS fields, and honeycomb structures that respond to parameters and time.
What license does implicit-cad use?
implicit-cad is released under the MIT license, allowing free use, modification, and distribution in both open-source and commercial projects.
Can implicit-cad generate lattice and TPMS patterns?
Yes. implicit-cad can generate lattice, TPMS (triply periodic minimal surface), and honeycomb patterns for implicit models. These procedural patterns are defined as distance fields and render efficiently in the browser using raymarching.
SKILL.md
rendered from the published skill — quoted content, verbatim
Implicit CAD
Use this skill for implicit CAD models that should run directly in CAD Viewer as browser JS modules. The primary artifact is a .implicit.js or .implicit.mjs.
This skill is experimental. ALWAYS prefer conventional STEP-first CAD workflows unless the user explicitly asks for an implicit model.
File Format
An implicit CAD file is an ES module exporting an implicit.js/0.1.0 object. The schema source of truth lives in the bundled package at scripts/packages/implicitjs/src/lib/implicitCad/schema.js; scripts/lib/implicit-cad.mjs re-exports it as SCHEMA for helper-authored modules.
``js
export default {
schema: "implicit.js/0.1.0",
name: "rounded capsule block",
glsl:
float sdf(vec3 p) {
float sphere = implicit_sphere(p, vec3(0.0), 22.0);
float block = implicit_box_centered(p, vec3(34.0, 18.0, 18.0), vec3(0.0));
return implicit_union_round(sphere, block,
(truncated - see the full file via the links below)
Read as markdown · JSON record · Browse the source repository
File tree — 15 files
skills/implicit-cad/LICENSE
skills/implicit-cad/SKILL.md
skills/implicit-cad/agents/openai.yaml
skills/implicit-cad/scripts/export.mjs
skills/implicit-cad/scripts/lib/implicit-cad.mjs
skills/implicit-cad/scripts/packages/implicitjs/README.md
skills/implicit-cad/scripts/packages/implicitjs/package-lock.json
skills/implicit-cad/scripts/packages/implicitjs/package.json
skills/implicit-cad/scripts/packages/implicitjs/scripts/export.mjs
skills/implicit-cad/scripts/packages/implicitjs/scripts/run-tests.mjs
skills/implicit-cad/scripts/packages/implicitjs/scripts/snapshot-runtime/render.html
skills/implicit-cad/scripts/packages/implicitjs/scripts/snapshot.mjs
skills/implicit-cad/scripts/packages/implicitjs/scripts/snapshot.test.mjs
skills/implicit-cad/scripts/packages/implicitjs/scripts/verify-implicit-cad-exports.mjs
skills/implicit-cad/scripts/packages/implicitjs/src/browser.js