Skip to content

v0.5.0 — Bring-your-own-CAD import

Latest

Choose a tag to compare

@JMMonte JMMonte released this 14 Jun 00:18

import-cad: use the plugin on an EXISTING CAD file

Until now the plugin assumed geometry-as-code. v0.5.0 adds the other door: hand it a CAD file and verify/simulate it.

  • import_cad.py loads STEP/.stp (exact BREP via build123d/OCCT) or STL/OBJ/GLB/PLY meshes (trimesh), converts to canonical mm, and writes out/imported.json (bbox, volume, centroid, mass, watertight, warnings) + a mesh — the artifacts the audits already read.
  • Then add-scored-audit / fea_continuum (gmsh→CalculiX) / viz / add-material all run on the imported geometry.
  • Handles the traps (GUARDRAILS §9): units (STL is unitless, STEP often wrong — a 25.4x/1000x error silently corrupts everything), mass needs a cited density (materials.json), watertightness gates volume/FEA, and native formats (.sldprt/Fusion/CATIA) must be exported to STEP/STL first.

New import-cad skill; scaffold copies import_cad.py; README documents the two entry points.

Install: /plugin marketplace add JMMonte/agentic-digital-twin