SG-Lib

Unique features

SG-Lib is not another geometry kernel and not a CAD GUI, but a code-driven design-to-manufacture library: a triangulated surface mesh (B-Rep, not CSG), contour-first construction, frame-based assembly (align/match), a built-in connection designer [H,N,S,Supp,Parts] with fits, standard parts and a bill of materials, additive-manufacturing correctness by construction (nofrd/Nyquist) and self-documenting scripts (XX). Boolean, projection and slicing run — since July 2026 — on the embedded Manifold library (fallback: SG-Lib’s own routines).

LLM auto-construction: SG-Lib can be driven via the ChatGPT API since 2024 and via Claude since July 2026. From a task description it generates MATLAB code that produces not only the geometry, but also the construction path, the bill of materials and the suppliers’ web addresses — geometry + path + parts list + sourcing in a single run.

Comparison with alternative approaches

Category & examplesThe alternative’s approachDifference to SG-LibSG-Lib advantage
Script CAD with CSG — OpenSCAD, JSCAD, ImplicitCADText script builds an exact CSG tree from primitives via boolean chainsCSG instead of triangulated mesh B-Rep; no frames, fits or BOM; no manufacturing knowledgeContour-first instead of fragile boolean chains (triangle-sparse), relative frame assembly, DfM/fits built in
Parametric code CAD — CadQuery, build123d (OpenCASCADE)Python API on an exact B-Rep/NURBS kernel; sketch → feature, locations/jointsExact kernel instead of mesh; no AM tessellation model (Nyquist); no standard-part/connection catalog with BOMPrintable by construction (nofrd, mm) + machine-element kit [H,N,S,Supp,Parts] with parts list/product codes
Mesh / geometry libraries — libigl, CGAL, trimesh, Open3D, VTKToolboxes for mesh operations (some booleans), without construction semanticsPure geometry building blocks without joining/assembly logic, frames or BOMA complete construction library instead of a toolbox; uses such kernels as substrate
Robust boolean kernel — ManifoldGuaranteed watertight mesh boolean kernel; a pure kernel without a construction layerNo frame/DfM/BOM concept; solves “only” robustness and performanceManifold is SG-Lib’s substrate since July 2026 (boolean/projection/slicing); SG-Lib adds frames, fits, printability, BOM
Exact CAD kernels & GUI — OpenCASCADE/FreeCAD, SolveSpace, Rhino/GrasshopperExact solids/NURBS, interactive or constraint-basedKernel/GUI-centric, partly proprietary; no code-driven DfM automation with a BOMScriptable/reproducible, self-documenting (XX); manufacturability and BOM emerge automatically
Implicit / design-for-AM — nTop, libfive, SDF/FidgetImplicit fields (SDF/F-Rep); strong at lattices/TPMS and topology optimizationFields instead of mesh B-Rep; no frame/connection kit with standard partsMechanical connections, standard parts, assembly order + finished printable parts instead of pure lattices
Frame / mechanism toolkits — ROS/URDF, MuJoCo, Robotics ToolboxFrames, kinematics and simulation of mechanisms/robotsDo not produce printable geometry with fits — only the “frame half”Combines frame semantics with manufacturing-ready geometry: align/match become real, assemblable parts

What makes it unique

No other known project unites in one code-driven environment: mesh B-Rep + contour-first + frame-based assembly + a built-in machine-element/connection designer with a bill of materials + AM-correctness by construction + self-documenting, shareable files (frames encoded in the STL) + LLM control (ChatGPT since 2024, Claude since July 2026) that produces geometry, construction path, parts list and supplier URLs in one run. The others each cover one of these pillars — SG-Lib the integration across all.

This comparison is the personal assessment of Tim Lueth. I may be mistaken about the features of the other projects — corrections are welcome.

Third-party project states web-checked (Manifold, nTop 5.0, OpenSCAD, build123d). Research date: 2026-07-17.