FEofVLFL

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - FS/Feature Surfaces
Introduced first in SolidGeometry 3.8, Creation date: 2017-04-06, Last change: 2025-09-14

returns FE and optional VL of a solid geometry or of gca

Description

ATTENTION: Matlabs feature edges need not to have the same direction even if there is only feature edge contour. To create a closed polygon CVL you have to resort the edges first.

See Also: FEofSG , VLFLofgca , FEplot , ELsort , ELreconnect

Example Illustration

 missing image of FEofVLFL(VL,FL,ang,esort)

Syntax

[FE,VL]=FEofVLFL([VL,FL,ang,esort])

Input Parameter

VL: Vertex list if empty; VLFLofgca is used
FL: Facet List
ang: angle; default is 0.4 ~ pi/8
esort: sort edges; default is true

Output Parameter

FE: Feature edge list
VL: Vertex list for embedded SG

Examples


[VL,FL]=VLFLsample(4);
FEofVLFL(VL,FL);




Copyright 2017-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, FEofVLFL, is designed to compute feature edges from a given vertex list (VL) and facet list (FL) of a solid geometry. It is part of the SG-Library and was developed by Tim Lueth.

Input Parameters

Output Results

Algorithm Steps

  1. Retrieve input parameters using getfuncparams function. If no parameters are provided, use VLFLofgca to get VL and FL.
  2. If VL is a solid geometry and FL is empty, use VLFLofSG to obtain VL and FL.
  3. Set the angle threshold (ang) and edge sorting option (esort).
  4. Suppress specific warnings related to triangulation using warning('off').
  5. Create a triangulation object TR3 using the facet list (FL) and vertex list (VL).
  6. Compute feature edges using the featureEdges function with the triangulation object and angle threshold.
  7. Restore the previous warning state.
  8. If esort is true, sort the feature edges using ELsortFE.
  9. If no output arguments are specified, plot the solid geometry and feature edges using SGfigure, VLFLplotalpha, and VLELplots.
Algorithm explaination created using ChatGPT on 2025-08-19 07:41. (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