SGsurfaceselect

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

returns an isolated surface from a solid or SGofgca

Description

DOES NOT WORK WITH NON MANIFOLD VERTICES - SGchecknonmanifoldvertices
the commands are
inBB, anyx>, anyy>, allx>, aly>, allz>

See Also: SGsurfacessort , SGselect , SGselectGroupofT

Example Illustration

 missing image of SGsurfaceselect(SG,fi,vi)

Syntax

[SGI,SG,SIL,nfi]=SGsurfaceselect([SG,fi,vi])

Input Parameter

SG: Solid geometry or empty for gca
fi: facet index if numerical or cmd
vi: vertex index

Output Parameter

SGI: Selected closed surface
SG: SG with reordered facet list
SIL: Surface index list for all surfaces
nfi: facet index with respect to

Examples

load JACO_robot.mat
SGfigure; SGplot(JCF); SGsurfaceselect
SGsurfaceselect(JCF,[2803 2865 2870])
SGsurfaceselect(JCF,1000) % USE WITH FACET INDEX
SGsurfaceselect(JCF,'',2803) % use with vertex index
SGsurfaceselect(JCF,'all x>',10) % use with cmds




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