Syntax
SG=SGtube([RR,LL,sl])
Input Parameter
RR : | | [Inner Radius x Wall size]; default is 8 1.5 |
LL : | | Length of tube; default is 100 |
sl : | | slot size |
Output Parameter
Examples
SGtube([2.5 .5],200)
Copyright 2022-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
Algorithm (Workflow)
This function, SGtube
, is a simplified version of SGplugintube
from the SolidGeometry library. It is designed to create a solid geometry representation of a tube.
Input Parameters
- RR: A vector representing the inner radius and wall size of the tube. The default value is [8, 1.5].
- LL: The length of the tube. The default value is 100.
- sl: The slot size. The default value is 0.
Output
- SG: The resulting solid geometry of the tube.
Algorithm Steps
- The function begins by retrieving the input parameters using the
getfuncparams
function. This function checks if the parameters are provided; if not, it assigns default values.
RR
is retrieved as the first parameter, with a default of [8, 1.5].
LL
is retrieved as the second parameter, with a default of [100, 0, NaN].
sl
is retrieved as the third parameter, with a default of 0.
- The function then calls
SGplugintube
with the parameters RR
, LL
, and sl
to generate the solid geometry SG
.
- If no output is requested (i.e.,
nargout == 0
), the function visualizes the geometry using SGfigure
and SGTplotalpha
.
Algorithm explaination created using ChatGPT on 2025-08-18 22:56. (Please note: No guarantee for the correctness of this explanation)
Last html export of this page out of FM database by TL: 2025-09-21