TR3mountingfaces

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

finds connected facets with same normal vector

Description

Powerful but slow/recursive function to detect points that defined planar and spherical surfaces.
Auxiliary function developed originally for and used in SGTui

See Also: TR3mountingfaces , CVLdimclassifier , MLofSG , SGTui

Example Illustration

 missing image of TR3mountingfaces(TR3,fi,fe)

Syntax

[FIL,nv,FnL,NnL,RL,CVL,TR3]=TR3mountingfaces(TR3,fi,[fe])

Input Parameter

TR3: Surface triangulation of a solid
fi: singe facet index
fe: feature edge angle; default is 0

Output Parameter

FIL: all facets connected to first facet with the same normal vector
nv: normal vector of this facet
FnL: all neigbor facets of FIL. WARNING: Always empty if fe>0
NnL: normal vector angle difference to nv of FnL
RL: Radial list created by CVLdimclassifier
CVL: CLosed Vertex list used for CVLdimclassifier
TR3: TR# is case that an SG was used as input parameter

Examples


SG=SGtransR(SGsample(25),rot(pi/6,0,pi/2)); TR3=triangulation(SG.FL,SG.VL);
[a,b,c,d,RL,CVL]=TR3mountingfaces(TR3,60,1);
SGfigure; h=SGplot(SG); setplotlight(h,'r',0.1); CVLplot(CVL); VLplot(RL(:,1:3),'k*',5);




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