FLremove2Dh

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Auxiliary function
Introduced first in SolidGeometry 1.0, Creation date: 2012-10-13, Last change: 2025-09-14

removes facets from a solid generated with VLFLclose2Dh

Description

If a solid is generated using VLFLclose2Dh, it is possible to reconstruct the ordner of the facets and to remove facets from the facet list. It is used in FTelement for example. After removing facets once, the order of facets is unknown!
The original order of the facets is: [FWallA;FWallB,FLBottom;FLTop]

See Also:

Example Illustration

 missing image of FLremove2Dh(FL,nc,rml)

Syntax

[FL]=FLremove2Dh(FL,nc,rml)

Input Parameter

FL: Original facet list
nc: number of factes of the caps
rml: list of facets to remove

Output Parameter

[FL]: New facet list




Copyright 2012-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 algorithm is designed to remove specific facets from a solid's facet list, which was originally generated using the VLFLclose2Dh function. The function is part of the SG-Library and is used to manipulate the facet list of a 3D solid.

Input Parameters

Output

Algorithm Steps

  1. Calculate the total number of facets, n, from the size of the input facet list FL.
  2. Determine the number of wall facets, nw, by subtracting twice the number of cap facets nc from n.
  3. Calculate the number of facets per wall, nv, by dividing nw by 2.
  4. Split the original facet list FL into four parts:
  5. Iterate over each index in the rml list to remove specified facets:
  6. Remove duplicate rows from FWA and FWB using the unique function.
  7. If the first row of FWA or FWB is [0 0 0], remove it.
  8. Concatenate the modified FWA, FWB, FLB, and FLT to form the new facet list FL.
Algorithm explaination created using ChatGPT on 2025-08-19 01:26. (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