VLFLspring

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

returns vertex/facet list for a mechanical spring

Description

the spring consist of a base plate and a top plate and m helixes that are mounted between base plate and top plate

See Also: SGSpring

Example Illustration

 missing image of VLFLspring(r,h,n,m,dx,dy,l)

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