SGsurfaces

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Surfaces
Introduced first in SolidGeometry 3.8, Creation date: 2017-04-03, Last change: 2025-09-14

returns a cell list of separated CLOSED surfaces similar to SGseparate

Description

SGsurfaces and SGseparate analyse independent closed surfaces.
SGanalyzeGroupParts analyses penetration of surfaces.
For open surfaces use surfacesofSG

See Also: SGseparate , VLFLregions , SGsurfacehistogram , SGpacking , SGwriteSeparatedSTL , SGanalyzeGroupParts , surfacesofSG

Example Illustration

 missing image of SGsurfaces(SG,slct)

Syntax

[SGC,n,BB]=SGsurfaces(SG,[slct])

Input Parameter

SG: Solid geoemtry as single struct
slct: surface index; default is all; SGseparate shows all

Output Parameter

SGC: cell list of solid geometry structs
n: length of cell list
BB: cell list of bounding boxes; see SGseparate

Examples


SGsurfaces(SGsample(17))
SGwriteSeparatedSTL(SGsurfaces(SGsample(17)))
SGpacking(SGsurfaces(SGsample(17)))




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