SGcase
by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Parametric Design
Introduced first in SolidGeometry 1.0, Creation date: 2013-05-10, Last change: 2025-09-14
returns the solid geometry for a cubic case with cover
Description
This procedure is useful for covering small parts in a print job by a bigger case with a cover. The inner size of the Box is [x-2*wall y-2*wall z-3*wall].
Very old, not bug free function
See Also: SGbox
, SGBAUHAUSdeskcylinder
, SGboxMacmini
, SGBAUHAUSbox
Example Illustration
Syntax
[SGB,SGC]=SGcase([S,wall,slot,lr,"STL","InDim"])
Input Parameter
S: | | Outer size as vector [x y z] |
wall: | | Wall Thickness; default is 0.7 |
slot: | | Slot distance; default is 0.5 for separation of box and cover |
lr: | | desired raster size; default is no raster |
"STL": | | if used an STL directory is written |
"InDim": | | if used S contains the inner dimensions |
Output Parameter
SGB: | | SG of the Box |
SGC: | | SG of the Cover |
Examples
SGcase([86,54,10]); % Dimensions are Outer Dimensions
SGcase([86,54,10],'InDim'); % Dimensions are Inner Dimensions
SGcase([86,54,10],'InDim','STL'); % Dimensions are Inner Dimensions, write an STL directory
Copyright 2013-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