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
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
- VL: Vertex list. If empty, the function
VLFLofgca is used to obtain it.
- FL: Facet list.
- ang: Angle threshold for feature edge detection. Default is 0.75 radians (~43 degrees).
- esort: Boolean to determine if edges should be sorted. Default is true.
Output Results
- FE: Feature edge list.
- VL: Vertex list for embedded solid geometry.
Algorithm Steps
- Retrieve input parameters using
getfuncparams function. If no parameters are provided, use VLFLofgca to get VL and FL.
- If VL is a solid geometry and FL is empty, use
VLFLofSG to obtain VL and FL.
- Set the angle threshold (
ang) and edge sorting option (esort).
- Suppress specific warnings related to triangulation using
warning('off').
- Create a triangulation object
TR3 using the facet list (FL) and vertex list (VL).
- Compute feature edges using the
featureEdges function with the triangulation object and angle threshold.
- Restore the previous warning state.
- If
esort is true, sort the feature edges using ELsortFE.
- 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