VLFLdome

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

return VL and FL of a dome

Example Illustration

 missing image of VLFLdome(RZ,RX,RY,wall,nfo,nfi)

Syntax

[VL,FL,FLf]=VLFLdome(RZ,RX,RY,wall,[nfo,nfi])

Input Parameter

RZ: Radius in Z (Height)
RX: Radius in X
RY: Radius in Y
wall: Thickness of the dome
nfo: Number of facets of the outer sphere
nfi: Number of facets of the inner sphere; default is nfo

Output Parameter

VL: Vertex list of inner and outer wall
FL: Facet list of inner and outer wall
FLf: Facet list of the dome's floor




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, VLFLdome, calculates the vertex and facet lists for a dome structure. It is part of the SG-Library and was created by Tim Lueth. The function takes several input parameters and returns three outputs.

Input Parameters

Output Results

Algorithm Steps

  1. Determine the number of facets for the outer sphere using the function nofrd with the maximum of RX and RY. If nfo is provided, use that value instead.
  2. Set nfi to the value of nfo unless a specific value is provided.
  3. Create a circle for the outer hemisphere using PLcircle with radius RX and RY, and nfo facets.
  4. Generate the vertex and facet lists for the outer hemisphere using VLFLhemisphere.
  5. Create a circle for the inner hemisphere using PLcircle with reduced radii (RX-wall and RY-wall) and nfi facets.
  6. Generate the vertex and facet lists for the inner hemisphere using VLFLhemisphere with reduced height (RZ-wall).
  7. Concatenate the vertex and facet lists of the inner and outer hemispheres using VLFLcat2, swapping the facets of the inner hemisphere with FLswap.
  8. Calculate the facet list for the dome's floor using FLplaneofVLCiL with indices for the outer and inner circles.
  9. Swap the floor facets using FLswap.
  10. If no output is requested, plot the dome using VLFLplotalpha with a white color and 0.9 transparency.
Algorithm explaination created using ChatGPT on 2025-08-19 01: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