SGseparate

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - VLFL/Surfaces
Introduced first in SolidGeometry 2.1, Creation date: 2015-01-04, Last change: 2025-09-14

plots or returns sorted surfaces or one surface of a solid geometry

Description

SGseparate is a newer (faster and more convinient) version of VLFLseparate
Based on ELorder and VLELselect.
With only one surface is asked, surface is moved into 1st. Quadrant
With no output parmeter, the surface(s) are plotted using VLFLfigure
With no SG specified, VLFLui is used to read in an STL-File
2017-06-14: i can be index or index list
2018-08-24: Have in mind that SGshort can change the solid list
2021-07-27: See als VLFLregions

See Also: SGsurfaces , SGanalyzeGroupParts , SGanalyzePenetration , VLFLregions , SGorder , TRorder

Example Illustration

 missing image of SGseparate(SG,i)

Syntax

[SG,SIL,n,BBi]=SGseparate([SG,i])

Input Parameter

SG: Solid Geometry; if empty
i: index list of single/selected surface

Output Parameter

SG: Solid Geoemtry
SIL: Surface Index List
n: number of closed surfaces
BBi: Cell list of Bounding Boxes of the Solids

Examples

loadweb JACO_robot.mat;
SGseparate(JC1,[1,2,4])
SGseparate(JC3)
SGseparate(SGshort(JC3))




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