A MATLAB toolbox for solid-geometry modelling, FE-based optimization and multi-body simulation — enabling automated design of robots, mechanisms and 3D-printable geometry from a simple conversation.
by Prof. Tim C. Lueth, Technical University of Munich (TUM), Germany Free, non-commercial toolbox for research and teaching · www.sg-lib.org
- Rigid bodies, joints and kinematics
- Gear design
- Shape optimization via computer-aided and topology optimization
- Multi-body system simulation
- Control code generation for Arduino microcontrollers
- 2D/3D area camera processing
- Medical CT/MRI image data processing
Documentation is available in English and German.
1 — the toolbox
Download SolidGeometry_5.6.mltbx
(46 MB) and double-click it in MATLAB, or install it from
MATLAB Central.
If you prefer one single file with everything inside, take SolidGeometry_5.6_full.mltbx (199 MB) from the
same release — it already contains the html documentation and all data sets, so steps 2 and 3 are not needed.
2 — the html documentation (about 110 MB, loaded on demand)
SGlibinstalldoc % downloads and installs the help pages, then builds the search index3 — the data sets (robot and CT models, loaded on demand)
loadweb % shows the download path
loadweb('JACO_robot.mat',true)- Claude interface — design by conversation
- 3306 p-coded routines and 82 documented examples (
VLFL_EXP01…VLFL_EXP82) - interactive argument hints in the editor (
functionSignatures.json) - the package shrank from 223 MB to 46 MB — documentation and data sets now load on demand
- requires MATLAB R2023a or newer, runs on macOS, Windows and Linux
The next SG-Lib version (2027) will also be offered for Python. The Python edition can then be used from MATLAB through a Python bridge, so existing MATLAB code keeps working while new work can be written in either language.
| Version | Date | Size | Note |
|---|---|---|---|
| 5.6 | 2026-10 | 46 MB | Claude interface · slim package · documentation and data sets on demand |
| 5.5.4 | 2025-09 | 223 MB | last version with the full html documentation inside the package |
| 5.5 | 2025-09 | 33 MB | the version offered at the TUM web site |
| 5.4 | 2025-05 | 36 MB | |
| 5.3 | 2023-10 | 44 MB | |
| 5.2 | 2023-01 | 37 MB | |
| 4.0 – 5.1 | 2019 – 2022 | 291 MB | 13 versions, collected |
| 4.8 | 2020-08 | 37 MB | |
| 3.2 – 3.9 | 2017 | 103 MB | 10 versions, collected |
All downloads: releases
More pictures and videos: SG-Lib-Tutorials-Pics-Videos and the research videos of Tim Lueth.
The SG-Lib grew out of three decades of research on medical robotics, surgical navigation, additive manufacturing and the automated design of mechanisms — including the spin-offs RoboDent, ERGOSURG, Medineering (Brainlab), Laralab (Abbott), Aumatis and FORMOVE, and most recently humanoid robots and generative AI for robot design at MIMED.
→ Tim Lueth's research, 1989 – 2026
- www.sg-lib.org — overview, tutorials and the function reference
- Tim Lueth's research — projects, spin-offs and videos from 1989 to today
- MATLAB Central
- MIMED — Institute of Micro Technology and Medical Device Technology, TUM
- Research videos on YouTube
Contact: tim.lueth@tum.de

