findfacetsinVLFL

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Geometric Queries
Introduced first in SolidGeometry 4.7, Creation date: 2019-07-13, Last change: 2025-09-14

creates a correlation index list of the facets in FLA and FLB

Description

Change in SG-Lib 4.9: Supports order and direction
slow(up to 6 recursive calls)

See Also: ismemberFL , maprows , SGcolorcopy

Example Illustration

 missing image of findfacetsinVLFL(VLA,FLA,VLB,FLB,order,flips)

Syntax

cc=findfacetsinVLFL(VLA,FLA,VLB,FLB,[order,flips])

Input Parameter

VLA: Vertex list Solid A
FLA: Facet list Solid A
VLB: Vertex list Solid B
FLB: Facet list Solid B
order: if true the vertex order is ignored; default is false
flips: if true the facet direction is ignored; default is false

Output Parameter

cc: facet correlation index list [ai bi]

Examples


SGofCPLz(PLstar(10),5); A=ans;
SGofCPLz(PLcircle(10),5); B=ans; SGtransrelSG(B,A,'ontop',5,'transx',3); B=ans
SGTset(A,'M',[0 0 1]); A=ans;
SGTset(B,'M',[0 0 -1]); B=ans;
SGconnect2FS(A,B,FSofSGfacet(A,31),TofFS(B,[0 0 -1])); C=ans
findfacetsinVLFL(A.VL,A.FL,C.VL,C.FL)

findfacetsinVLFL(A.VL,A.FL,C.VL,C.FL(:,[2 3 1]),false)
findfacetsinVLFL(A.VL,A.FL,C.VL,C.FL(:,[2 3 1]),true) % finds even in other order

findfacetsinVLFL(A.VL,A.FL,C.VL,C.FL(:,[1 3 2]),'',false)
findfacetsinVLFL(A.VL,A.FL,C.VL,C.FL(:,[1 3 2]),'',true) % finds even in flip surface normal




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