SGTremovedistframes
by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Kinematics and Frames
Introduced first in SolidGeometry 5.2, Creation date: 2022-05-08, Last change: 2025-09-15
removes frames that are outside the bounding box of the surface of a solid
Description
The SG-Lib writes out STL files including frames! Nevertheless, some slicer such as the Ultimaker CURA slicer have problems with Solids that have far distant frames, and the solid surface is not sliced on the base plate but in distant from the ground. Therefor, starting from SG-Lib 5.2, SGwriteSTL will not export the distant frames if not explicitly mentioned
See Also: SGwriteSTL
Example Illustration
Syntax
[SG,ww]=SGTremovedistframes(SG)
Input Parameter
SG: | | Solid Geometry with frames. |
Output Parameter
SG: | | Solid Geometry will all frames removed that are outside the BB of SG |
ww: | | true if any frames was removed |
Examples
SGTremovedistframes(SGbox);
SGTremovedistframes(SGTset(SGbox,'OUT',TofP([30 30 30])));
Copyright 2022-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