SGreadSTLdir

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

reads all STL files of a folder into one SG cell list



See Also: SGreadSTL , SGwriteSTL , VLFLreadSTL , VLFLwriteSTL , stldir , SGpartslistfindproductcodes

Example Illustration

 missing image of SGreadSTLdir(dirname,mag,fac,col)

Syntax

[SG,AParts]=SGreadSTLdir([dirname,mag,fac,col])

Input Parameter

dirname: folder name or single file in a folder
mag: magnification; default is 1
fac: maximum number of facets overall
col:

Output Parameter

SG: Cell list of Solids
AParts: created from StandardParts_parts.txt in this folder using SGpartslistfindproductcodes

Examples


loadweb JACO_robot.mat
fname=SGwriteMultipleSTL(JACO,'JACO-ROBOT')
SGreadSTLdir(fname)




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