[VL,FL]=VLFLstarlink(Ro,Ri,bx,f)
Ro : | Maximum outer radius | |
Ri : | Innerer Diameter | |
bx : | Thickness in x-direction | |
f : | Number of links |
VL : | Vertex list of the strutures | |
FL : | Facet list of the strutures |
Generate 6 bars between 30 mm and 100 mm
[VL,FL]=VLFLstar (100,30,10,10,6);
VLFLwriteSTL ('TEST','Tim',VL,FL);
This algorithm is designed to link a cylinder to a frame or a tube by generating a structure of bars between an inner and outer radius. It replaces an older version used in previous experiments.
dw
as 2*pi/f
, which determines the angle between each link.w
to -dw/2
to start the first link at the correct position.f
:pa
for the inner radius using polar coordinates: [Ri*cos(w); Ri*sin(w); 0]
.pb
for the outer radius using polar coordinates: [Ro*cos(w); Ro*sin(w); 0]
.pa
and pb
using the function VLFLbar2P
, which returns new vertex and facet lists NVL
and NFL
.VL
and FL
with NVL
and NFL
. Otherwise, concatenate the new lists with the existing ones using VLFLcat2
.w
by dw
for the next link.The algorithm effectively creates a series of bars connecting the inner and outer radii, forming a star-like structure with the specified number of links.
Algorithm explaination created using ChatGPT on 2025-08-19 00:11. (Please note: No guarantee for the correctness of this explanation)