SGwriteSTLshrinked

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Import/Export
Introduced first in SolidGeometry 5.1, Creation date: 2021-03-14, Last change: 2025-09-15

writes shrinked STL files on disk

Description

This function stores the factor as a persistent variable. If the size factor is not explicitly overwritten, the factor from the last call is used. In the future, the function will also analyze SG-cells, determine the largest factor and shrink all parts with this factor.

See Also: SGshrinktofit , SGwriteSTL

Example Illustration

 missing image of SGwriteSTLshrinked(SG,size,fname)

Syntax

[sname,SG]=SGwriteSTLshrinked(SG,[size,fname])

Input Parameter

SG: Solid Gemetry
size: maximum dimensions in mm oder shinking factor; default is 100mm
fname: optional file name

Output Parameter

sname: file name
SG: Shrinked Solid

Examples


loadweb Yannick_robot.mat
SGwriteSTLshrinked(YKUpper,'',100);
SGwriteSTLshrinked(YKLower);
SGwriteSTLshrinked(YKBase);
SGwriteSTLshrinked(YKShoulder);




Copyright 2021-2025 Tim C. Lueth. All rights reserved. The code is the property of Tim C. Lueth and may not be redistributed or modified without explicit written permission. This software may be used free of charge for academic research and teaching purposes only. Commercial use, redistribution, modification, or reverse engineering is strictly prohibited. Access to source code is restricted and granted only under specific agreements. For licensing inquiries or commercial use, please contact: Tim C. Lueth

Last html export of this page out of FM database by TL: 2025-09-21