by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - SG/Solids
Introduced first in SolidGeometry 1.0, Creation date: 2011-12-26, Last change: 2025-09-14
[VL,FL,sx,sy,sz]=VLFLspring([r,h,n,m,dx,dy,l])
r: | Radius of the spring center; default is 5 | |
h: | Height of the spring (0-max); default is 50 | |
n: | number of full turns; default is h/r | |
m: | number of springs integrated; default is 3 | |
dx: | width of the spring cable; default is 2 | |
dy: | height of the spring cable; default is dx | |
l: | height of the base and top plate; default is dy |
VL: | Vertex list of the spring | |
FL: | Facet list of the spring | |
sx: | Radius in x-direction | |
sy: | Radius in y-direction | |
sz: | Size in z--direction |
Example for a spring r=10, height h=50; 1 full turn n=1; number of helix m=3; dx=2, dy=1;
[VL,FL,sx,sy,sz]=VLFLspring (5,50,1,3,2,1,1);
VLFLwriteSTL ('spring_5_50_1_3_2_1','by Tim Lueth',VL,FL);