VLFLoppositefaces

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Surfaces
Introduced first in SolidGeometry 4.9, Creation date: 2020-01-19, Last change: 2025-09-14

returns the list of faces that have opposit facets in the same solid

Description

SLOW function works up to 1000 facets within a second, 4 seconds for 2000 facets etc.
Use heuristic function FLofoppositefacesofVLFL for larger face numbers such as bone surfaces or other surface scanned solids


See Also: SGnearestpointsofSG , FLofoppositefacesofVLFL

Example Illustration

 missing image of VLFLoppositefaces(VL,FL,dmax,slec)

Syntax

[ofi,DL,SGB,FCL,FNL]=VLFLoppositefaces(VL,FL,[dmax,slec])

Input Parameter

VL: Vertex list
FL: Facet list
dmax: maximal distance
slec: '&' or '|' '&' forces the faces to hit a surface of the same set; default is '&'

Output Parameter

ofi: logical index of facets
DL: [si dist ei cp ]
SGB: Solid Geometry of the Bounding Box
FCL: Facet center list
FNL: Facet Normal list

Examples


SG=SGsample(25)
VLFLoppositefaces(SG.VL,SG.FL);
VLFLoppositefaces(SG.VL,SG.FL,[1 2]);




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