Skip to content

About

Solid Geometry Library - a MATLAB toolbox for CAD, mechanisms, robots and 3D printing

Topics

Resources

Stars

22 stars

Watchers

3 watching

Forks

Repository files navigation

SG-Lib — Solid Geometry Library for MATLAB

Design CAD, mechanisms and robots with natural language and generative AI

View SG-Lib-Matlab-Toolbox on File Exchange Latest release License: SG-Lib Academic

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


What it does

  • 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.


Install

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 index

3 — the data sets (robot and CT models, loaded on demand)

loadweb                  % shows the download path
loadweb('JACO_robot.mat',true)

What is new in 5.6 (October 2026)

  • 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

What comes next

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.


Releases

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


Examples

Solids from mechanism synthesis — ready for STL export and 3D printing

mechanism example

swing for gripper attached object

Videos and animated GIFs of your own or imported solids, mechanisms and robots

JACO robot

Simscape Multibody simulations created programmatically

More pictures and videos: SG-Lib-Tutorials-Pics-Videos and the research videos of Tim Lueth.


Behind the toolbox

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

Links

Contact: tim.lueth@tum.de

About

Solid Geometry Library - a MATLAB toolbox for CAD, mechanisms, robots and 3D printing

Topics

Resources

Stars

22 stars

Watchers

3 watching

Forks

Releases

Packages

Contributors