PLELtube

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - PLEL/Point List/Edge List
Introduced first in SolidGeometry 1.0, Creation date: 2012-11-21, Last change: 2025-09-14

returns a 2D point list and a edge list for a cylinder or a tube cross-section


Will be removed (2025-09-21): Use 'PLcircle' instead

Description

Function is now part of PLcircle

PLcircle([R R-wall],nofrd)

See Also: PLcircle

Example Illustration

 missing image of PLELtube(R,nf,wall,RY)

Syntax

[PL,EL]=PLELtube(R,[nf,wall,RY])

Input Parameter

R: Radius
nf: number of facets; default is nofrd
wall: wall thickness, default is 0
RY: Radius in Y, default is R

Output Parameter

PL: Point List (n x 2)
EL: Edge list (n x 2)

Examples

Draw a squared profile:
[PL,EL]=PLELtube (10,4,2),
VLELplot (PL,EL)




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, PLELtube, generates a 2D point list and an edge list for a cylinder or tube cross-section. It is part of the SG-Library and was created by Tim Lueth in 2012.

Input Parameters

Output Results

Algorithm Steps

  1. Initialize nf with the default value from nofrd(R) unless a specific value is provided in varargin.
  2. Initialize wall to 0 unless a specific value is provided in varargin.
  3. Initialize RY to R unless a specific value is provided in varargin.
  4. Generate a point list PL for a circle with radius R and nf facets using the function PLcircle. Adjust for RY if necessary.
  5. Create an edge list EL from the point list using the function ELofCVL with the 'c' option.
  6. If wall is greater than 0, generate an inner point list PLI for a circle with radius R-wall and nf facets.
  7. Create an inner edge list ELi from the inner point list using the function ELofCVL with the 'c' option.
  8. Combine the outer and inner point and edge lists using the function VLELcat2, swapping the inner edge list with ELswap.

The function is designed to create a cross-section of a tube or cylinder, with optional wall thickness, and can handle elliptical shapes by adjusting the Y radius.

Algorithm explaination created using ChatGPT on 2025-08-19 00:42. (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