FL=FLcontourwallELn(EL,n)
EL : | Edge list for both contours | |
n : | number of points/vertices, if not n=max(EL) or not size(PL,1) |
FL : | upright walls between the 2 contours |
[PL,EL]=PLELofCPL(CPLsample(8)); FL=FLcontourwallELn(EL,size(PL,1))
SGfigure(-30,30); VLFLplot([VLaddz(PL,0);VLaddz(PL,30)],FL);
This function, FLcontourwallELn
, is designed to generate wall facets between two contours based on an edge list. It is part of the SG-Library and was created by Tim Lueth.
EL
.FL
represents a triangular facet defined by three vertices.n
is provided. If not, it defaults to the maximum value in EL
.FLA
: This set is created by taking each edge in EL
and forming a triangle with the corresponding edge in the second contour, offset by n
.FLB
: This set is created similarly, but the vertices are rearranged to form the other side of the wall facet.FLA
and FLB
, are concatenated to form the complete list of wall facets, FL
.An example is provided in the comments, demonstrating how to use the function with a sample contour and visualize the resulting wall facets using other functions from the SG-Library.
Algorithm explaination created using ChatGPT on 2025-08-19 01:12. (Please note: No guarantee for the correctness of this explanation)