SG-Lib-Matlab-Toolbox

Version 5.5.4 (222 MB) by Tim Lueth
www.SG-Lib.org - Toolbox for the Design & Creation of Solid Body Geometries, Mechanisms and Robot for 3D-Printing (STL) and Multi Body Simul
3.4K Downloads
Updated 25 Apr 2022
With Version 5.5, there is a complete html documentationm 80 examples included (236 MB), and many function show the explaination of the algorithm created by ChatGPT.
SG-Lib (current version 5.5.4 from Sep 2025 for 2024b) is an extremely comprehensive and powerful Matlab toolbox with several thousand functions for CAD design based on surface models in STL format. It has been continuously developed by Tim Lueth and his team since 2013 and is used at the Technical University of Munich (TUM) for the Bachelor Mechanical Engineering programme. The SG-Lib is used to generate solids, mechanisms and robots for 3D printing via a function library or command instructions and to ensure that these motion machines move as calculated in advance after 3D printing by means of integrated fitting concepts. The models can be animated as videos and exported as 3D files or combined files with assembly instructions. The "loadweb" command can be used to download the MAT files from the server of the Technical University of Munich. Many models can also be run directly in Simscape as a muti-body simulation. The functions for FEM or shape optimisation (CAO) and topology optimisation (SKO), for which the PDE toolbox is then also required, originate from Yilun Sun at TUM. The openAI interface has been integrated by Robin Schregle, Lukas Heyn created the GitHub upload.
Visit SG-Lib.org for more information.

Cite As

Tim Lueth (2025). SG-Lib-Matlab-Toolbox (https://github.com/timlueth/SG-Lib-Matlab-Toolbox/releases/tag/v5.5.4), GitHub. Retrieved .

MATLAB Release Compatibility
Created with R2024a
Compatible with R2023a and later releases
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Versions that use the GitHub default branch cannot be downloaded

Version Published Release Notes
5.5.4

See release notes for this release on GitHub: https://github.com/timlueth/SG-Lib-Matlab-Toolbox/releases/tag/v5.5.4

5.3.0

See release notes for this release on GitHub: https://github.com/timlueth/SG-Lib-Matlab-Toolbox/releases/tag/v5.3.0

5.0.2

This is now in fact 5.0.1! Because of a github delay during publishing the changes, matlab central cached by accident the 5.0.0 instead of 5.0.1.

5.0.1

Compiled for 2020b for PC and MAC please use 5.0.1 after Oct. 2021

4.9.1

Release 4.9.1 has been adapted for R2020a and is strongly recommended as the latest version. In version 2020a the programming interface of SimScape is modified ("File Solid" instead of "Solid" or changed "Default Names" of the "Connectors" of "Sub

4.7.1

Support new functions for 3 Pose syntheses for mechanism design, colored STL, frame and color copy, automatic structure connection, 4.7.1 Changes for Arduino example

4.7

4.7 Support new functions for 3 Pose syntheses for mechanism design, colored STL, frame and color copy, automatic structure Cconnection

4.6.1

Library Image Included

4.6

To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.