ismemberFL

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - EL/Edge Lists
Introduced first in SolidGeometry 4.3, Creation date: 2018-09-14, Last change: 2025-09-14

returns ismember for all three possibilities of a facet list

Description





See Also:

Example Illustration

 missing image of ismemberFL(FLA,FLB)

Syntax

im=ismemberFL(FLA,FLB)

Input Parameter

FLA: Facet List A
FLB: Facet List B

Output Parameter

im: ismember result

Examples


FLA=[1 2 3; 4 5 6; 7 8 9]; FLB=[2 3 1; 6 5 4; 9 7 8];
ismemberFL(FLA,FLB)




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

Algorithm (Workflow)

This function, ismemberFL, is designed to determine if each row of a facet list A (FLA) is present in a facet list B (FLB) in any of three possible configurations. It is part of the SolidGeometry library.

Input Parameters

Output

Algorithm Steps

  1. Check if FLB is empty. If it is, return a logical vector of false with the same number of rows as FLA, as no facets can match.
  2. Use the ismember function to check if each row of FLA is present in FLB in three configurations:
    • Directly as it is.
    • With the columns of FLB circularly shifted by one position to the right.
    • With the columns of FLB circularly shifted by two positions to the right.
  3. Combine the results of the three ismember checks using the logical OR operator (|), resulting in a logical vector im that indicates presence in any configuration.
Algorithm explaination created using ChatGPT on 2025-08-18 22:50. (Please note: No guarantee for the correctness of this explanation)

Last html export of this page out of FM database by TL: 2025-09-21