Syntax
[VL,FL,sx,sy,sz]=VLFLspring([r,h,n,m,dx,dy,l])
Input Parameter
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 |
Output Parameter
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 |
Examples
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);
Copyright 2011-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
Last html export of this page out of FM database by TL: 2025-09-21