Syntax
VLFLELplot(VL,FL,PEL)
Input Parameter
VL : | | Vertex list |
FL : | | Facet list |
PEL : | | Edge list |
Examples
Plot non manifold edges of a solid (VLFL)
[VLC,EL,PEL]=VLFLchecker (VL,FL);
VLFLELplot (VL,FL,PEL);
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 function, VLFLELplot
, is designed to visualize an edge list and all associated facets of the edges. It is part of the SG-Library and was created by Tim Lueth in May 2012. The function is particularly useful for plotting problematic edge lists identified by the VLFLchecker
.
Input Parameters
- VL: Vertex list - A matrix where each row represents the coordinates of a vertex.
- FL: Facet list - A matrix where each row represents a facet by listing the indices of its vertices.
- PEL: Edge list - A matrix where each row represents an edge by listing the indices of its two vertices.
Algorithm Steps
- Determine the number of edges in the edge list
PEL
using size(PEL,1)
and store it in np
.
- Enable the hold on state for the current plot to allow multiple plots on the same figure.
- Iterate over each edge in
PEL
(from 1 to np
):
- For each edge, use the
pplot
function to plot the edge as a blue line with markers. The edge is defined by the vertices in VL
at the indices specified by the current row of PEL
.
- For each edge, determine which facets in
FL
contain both vertices of the edge:
- Use
ismember
to check if both vertices of the edge are present in each facet, resulting in a logical index list IL
.
- Create a matrix
AFL
by multiplying IL
with FL
, effectively zeroing out rows that do not contain the edge.
- Remove duplicate rows from
AFL
using unique
and ensure the first row is not zeroed out.
- Plot the facets associated with the current edge using the
VLFLplot
function, with the facets colored magenta ('m').
- Adjust the plot axes to be automatic and equal using
axis auto
and axis equal
.
Algorithm explaination created using ChatGPT on 2025-08-18 22:58. (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