SGT2SGN
by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Kinematics and Frames
Introduced first in SolidGeometry 5.0, Creation date: 2020-11-24, Last change: 2025-09-15
inserts frame information into the vertices and facets of a SG and removes the frame structures
Description
concept by Tim Lueth to hide information of different types in STL files without the need for XML
See Also: SGN2SGT
, SGreadSTL
, SGwriteSTL
Example Illustration
Syntax
SG=SGT2SGN([SGT])
Input Parameter
SGT: | | Solid Geometry with Frames |
Output Parameter
SG: | | Solid Geometry with coded frames and a normal vector list |
Examples
SGTset(SGbox,'TCL',TofP([0 0 25])); SG=ans;
SGT2SGN(SG); A=ans
SGN2SGT(A); B=ans;
SGfigure(-30,30); SGTplotalpha(B);
SGT2SGN(SG); A=ans; SGwriteSTL(A,'Codingtest');
A=SGreadSTL('/Users/lueth/Desktop/Codingtest.STL'); SGN2SGT(A); B=ans
Copyright 2020-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