SGpacking

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

returns a package of all solids of a cell list

Description

arranges the solids in a cell list of solids in a specified volume

See Also: SGsurfaces , SGanalyzeGroupParts , SGboxing , SGboxpacking , SGpatternXYZ , SGcopyrotZ , SGarrangeSG , SGarrangeSGC , SGCaddSGn , SGCaddSG

Example Illustration

 missing image of SGpacking(SGC,dim,dist,ez,turn)

Syntax

[SGN,SG]=SGpacking(SGC,[dim,dist,ez,turn])

Input Parameter

SGC: Cell list of solid geometries
dim: dimension of package, default is [85 65 100] or 'eos'
dist: minimal distance between solids; default is 1;
ez: optional ez vector for turning limitation; default is empty;
turn: true== turn to flat; false==unchanged orientation; default is true

Output Parameter

SGN: Packed solid geometry as one solid
SG: Packed solid geometry as cell list

Examples


loadweb JACO_robot.mat; SGpacking(JACO,[600 500 500],10,'',false)
loadweb JACO_robot.mat; SGpacking(JACO,[600 500 500],10,'',true)




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