SGbox

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Modeling function
Introduced first in SolidGeometry 1.0, Creation date: 2013-01-17, Last change: 2025-09-14

returns soldi geometry of a origin centered box

Description

Since 4.9 it also creates a list of Boxes

See Also: SGcone , SGsphere , SGlinkage , SGtext

Example Illustration

 missing image of SGbox(S,n,pack,nofram,

Syntax

SG=SGbox([S,n,pack,nofram,"noframe"])

Input Parameter

S: size vector type [x y z]
n: numbers of edges; default =4
pack: for several box; true = separated; false = centered; default is false
nofram:
"noframe":

Output Parameter

SG: VL / FL of the box

Examples

A=SGbox([30,20,10]); SGplot(A)
A=SGbox([10,10,40],40); SGplot(A)
BB=rounddiv(randminv(20,3,[1 10]),2)
SGbox(BB); SG=ans
SGbox(rounddiv(randminv(100,3,[1 10]),2)); SG=ans




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