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
- RZ: Radius in the Z direction (Height).
- RX: Radius in the X direction.
- RY: Radius in the Y direction.
- wall: Thickness of the dome.
- nfo: Number of facets of the outer sphere. This is optional and can be provided as a fifth argument.
- nfi: Number of facets of the inner sphere. This is optional and defaults to the value of
nfo
if not provided as a sixth argument.
Output Results
- VL: Vertex list of the inner and outer wall of the dome.
- FL: Facet list of the inner and outer wall of the dome.
- FLf: Facet list of the dome's floor.
Algorithm Steps
- 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.
- Set
nfi
to the value of nfo
unless a specific value is provided.
- Create a circle for the outer hemisphere using
PLcircle
with radius RX
and RY
, and nfo
facets.
- Generate the vertex and facet lists for the outer hemisphere using
VLFLhemisphere
.
- Create a circle for the inner hemisphere using
PLcircle
with reduced radii (RX-wall
and RY-wall
) and nfi
facets.
- Generate the vertex and facet lists for the inner hemisphere using
VLFLhemisphere
with reduced height (RZ-wall
).
- Concatenate the vertex and facet lists of the inner and outer hemispheres using
VLFLcat2
, swapping the facets of the inner hemisphere with FLswap
.
- Calculate the facet list for the dome's floor using
FLplaneofVLCiL
with indices for the outer and inner circles.
- Swap the floor facets using
FLswap
.
- 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