Syntax
[SG,H,AbC,FName]=SGreadSTL([FName,mag,rel])
Input Parameter
FName : | | File Name |
mag : | | optional magnification value |
rel : | | spatial relations and modifications by SGtransrelSG such as 'shrink','150 |
Output Parameter
SG : | | Solid Geometry |
H : | | header string 80 chars |
AbC : | | Attribute by Count per facet uint16(n), SG.FC=bgr162rgb(AbC); |
FName : | | FileName |
Examples
Read the STL-File of a current SimMechanics Block
SG=SGreadSTL(get_param(gcb,'ExtGeomFileName'))
Copyright 2016-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