VLFLyarn

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - SG/Solids
Introduced first in SolidGeometry 1.0, Creation date: 2010-11-20, Last change: 2025-09-15

calculates vertex list and facet list for a wire-yarn

Description

This function calculates a 'bent wire style object' that is called yarn. The function uses mainly VLFLbar2P. It is also a good example how to design bars, and later to remove the planes at the beginning and the end for concatenating different segments.

See Also: VLFLweave , VLFLring , VLFLdome , VLFLpost , VLFLcap , VLFLcone , VLFLsnaprivet , VLFLellipse1 , VLFLellipse2 , VLFLellipse3

Example Illustration

 missing image of VLFLyarn(l,n,ld,b,h,s,u)

Syntax

[VL,FL]=VLFLyarn(l,n,ld,b,h,s,u)

Input Parameter

l: length of the yarn in x-direction
n: number of notches (1 is up, 2 us up and down, if u=1)
ld: lenght of the notches (half at the begining and end)
b: Thickness of the wire-yarn in z-Axis
h: Thickness of the wire-yarn in y-Axis
s: Additional Slot Distance beside h/2 (required depending on the crossing wires) can be negative
u: direction of notches (1 starts in +y-direction, -1 starts in -y direction)

Output Parameter

VL: Vertex list of the wire-yarn
FL: Facet list of the wire-yarn

Examples

Simple wire-yarn:
[VL,FL]=VLFLyarn (100,5,4,1,1,1,-1);
VLFLwriteSTL ('YARN','(c) by Tim C. Lueth',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

Last html export of this page out of FM database by TL: 2025-09-21