VLFLring

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - SG/Solids
Introduced first in SolidGeometry 1.0, Creation date: 2012-10-31, Last change: 2025-09-14

returns vertex list and facet list of a ring



See Also: , VLFLdome , VLFLpost , VLFLcap , VLFLcone , VLFLsnaprivet , VLFLellipse1 , VLFLellipse2 , VLFLellipse3 , VLFLyarn , VLFLweave

Example Illustration

 missing image of VLFLring(r,n,h,w)

Syntax

[VL,FL]=VLFLring([r,n,h,w])

Input Parameter

r: Radius of the ring; default is 10
n: number of facets; default is nofrd
h: height of the ring
w: width of the ring; default is r/2

Output Parameter

VL: Vertex list of the ring
FL: Facet list of the ring




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 algorithm generates a 3D ring model by computing its vertex and facet lists. It is part of the SG-Library and was created by Tim Lueth. The function is called VLFLring and takes up to four input parameters.

Input Parameters

Output Results

Algorithm Steps

  1. Initialize default values for r, n, h, and w.
  2. Check if input arguments are provided and update the parameters if valid values are given.
  3. Calculate the outer circle points using PLcircle with radius r and n facets.
  4. Calculate the inner circle points using PLcircle with radius r-w and n facets.
  5. If the width w is greater than 0, concatenate the outer and inner circle points and their respective edge lists using VLELcat2.
  6. If the width w is 0, use only the outer circle points and edge list.
  7. Close the vertex and edge list to form a 3D ring using VLFLcloseVLELh with height h.
  8. Return the vertex list VL and facet list FL.
Algorithm explaination created using ChatGPT on 2025-08-18 23: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