VLFLstar
by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - SG/Solids
Introduced first in SolidGeometry 1.0, Creation date: 2010-11-03, Last change: 2025-09-14
returns a structure of several independent objects that can combine an inner and a outer structure
Description
This function is under development. At a later stage, it should be used for realizing light weight strucutres
Example Illustration
Syntax
[VL,FL]=VLFLstar(Ro,Ri,bx,by,f)
Input Parameter
Ro: | | Outer Diameter |
Ri: | | Innerer Diameter |
bx: | | Thickness in x-direction |
by: | | Thickness in y-direction |
f: | | Number of facets |
Output Parameter
VL: | | Vertex list of the strutures |
FL: | | Facet list of the strutures |
Examples
Generate 6 bars between 30 mm and 100 mm
[VL,FL]=VLFLstar (100,30,10,10,6);
VLFLwriteSTL ('TEST','Tim',VL,FL);
Copyright 2010-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 structure with a specified number of facets, creating a star-like shape with an inner and outer diameter. It is designed to produce lightweight structures.
Input Parameters
- Ro: Outer Diameter
- Ri: Inner Diameter
- bx: Thickness in x-direction
- by: Not used in the current implementation
- f: Number of facets
Output Results
- VL: Vertex list of the structures
- FL: Facet list of the structures
Algorithm Steps
- Calculate the angular increment
dw as 2*pi/f.
- Adjust the outer and inner diameters by subtracting
bx from each.
- Initialize the angle
w to -dw/2.
- Loop over each facet from
1 to f:
- Calculate the inner point
pa using the adjusted inner diameter and angle w.
- Calculate the outer point
pb using the adjusted outer diameter and angle w.
- Call
VLFLbar2P with points pa and pb to generate vertices and facets for the current bar.
- If it's the first facet, initialize
VL and FL with the new vertices and facets.
- Otherwise, concatenate the new vertices and facets to the existing lists using
VLFLcat2.
- Increment the angle
w by dw.
The function VLFLstar is part of the SG-Library and is used to create structures that can be combined to form complex shapes. The example provided demonstrates generating a structure with 6 bars between 30 mm and 100 mm.
Algorithm explaination created using ChatGPT on 2025-08-18 23:54. (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