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
cc=findfacetsinVLFL(VLA,FLA,VLB,FLB,[order,flips])
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 |
cc: | facet correlation index list [ai bi] |
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