SGarrangeSG

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - 3D-Print/Production
Introduced first in SolidGeometry 2.5.1, Creation date: 2015-09-15, Last change: 2025-09-14

arranges a cell list of solids in a single row

Description

'SGarrangeSG' handles the cell list elements as individual solids! Compare SGsample(17), SGSample(20)
It moves all solids of the cell list into the first quadrant and then arranges them in line with a constant distance in x, y, or z direction. It is a simple function without any space optimization or size ordering. For an optimal arrangement in a volume use 'SGpacking'.
In contrast to this function, the function 'SGarrangeSGC' uses a special container format that allow to store different printing positions for single solids of a set

See Also: SGarrangeSG , SGpacking , SGpatternXYZ , SGcopyrotZ , SGCaddSGn , SGCaddSG

Example Illustration

 missing image of SGarrangeSG(SGc,dist,adim)

Syntax

SG=SGarrangeSG(SGc,[dist,adim])

Input Parameter

SGc: Cell list of Solid Geometries
dist: fixed distance vector
adim: 'x' or 'y' or 'z' for arrangement

Output Parameter

SG: One single solid without any cell structure

Examples


SGarrangeSG ({SGbox(rand(1,3)),SGbox(rand(1,3)),SGbox(rand(1,3))},0.5)
SGarrangeSG (SGsample(17))
SGarrangeSG (SGsample(20))




Copyright 2015-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