VLFLcontourtube

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

returns VL, FL of a contour profiled tube along a path in space

Description

The function (used in exp_2012_11_12) calucates a bended profiled tube using a spatial path PL=(pn x 3). Be aware, that the tube is generated ONLY from the 2nd to the last but one point of PL. So the number of used contours is pn-2.
First contour is CL=VL(1:nv,:). Last contour is CL=VL(end-nv+1:end,:)

Example Illustration

 missing image of VLFLcontourtube(CL,ELU,PL,WL)

Syntax

[VL,FL,nv,EL,FLCapS,FLCapE]=VLFLcontourtube([CL,ELU,PL,WL])

Input Parameter

CL: Contour profile list (n x 2) or VALUE Radius
ELU: Edge list of CL or VALUE Wall thickness
PL: Path list (np x 3) for spatial tube movement
WL: Value list (np x 1) for expanding/narrowing along the path

Output Parameter

VL: Vertex list of tube
FL: Facet list of tube
nv: Number of vertices of one Contour, Required of CL is generated
EL: Edge list of the Contour (if not given as input parameter)
FLCapS: Facet list of start cap
FLCapE: Facet list of end cap

Examples

Show a bended and narrowed tube
k=40; PL=[(1:k)' zeros(k,1) (((1:k)/10).*((1:k)/10))'];
[VL,FL]=VLFLcontourtube (2,0.5,PL);
VLFLplot (VL,FL);




Copyright 2012-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