SGsurfacessort

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Surfaces
Introduced first in SolidGeometry 4.8, Creation date: 2019-12-07, Last change: 2025-09-14

sorts the independent surfaces of a cell surface list



See Also: SGsurfacessort , SGsurfaces , SGplotcell , SGplotsurfaces

Example Illustration

 missing image of SGsurfacessort(SG,cmd)

Syntax

[SG,sl]=SGsurfacessort(SG,[cmd])

Input Parameter

SG: Solid Geometry as cell list
cmd: optional sort command such as 'face', 'vertex', 'bbvol'

Output Parameter

SG: Solid Geometry
sl: sorting list

Examples


SGsurfacessort(SGboxsphere,'bbvol'); [a,b]=SGsurfacessort(SGboxsphere,'bbvol'); b
SGsurfacessort(SGboxsphere,'fl'); [a,b]=SGsurfacessort(SGboxsphere,'fl'); b




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