SGtube

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Surfaces
Introduced first in SolidGeometry 5.2, Creation date: 2022-06-07, Last change: 2025-09-15

Simplified version of SGplugintube



See Also: SGplugintube

Example Illustration

 missing image of SGtube(RR,LL,sl)

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

SG: Solid Geometry

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

Output

Algorithm Steps

  1. 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.
  2. RR is retrieved as the first parameter, with a default of [8, 1.5].
  3. LL is retrieved as the second parameter, with a default of [100, 0, NaN].
  4. sl is retrieved as the third parameter, with a default of 0.
  5. The function then calls SGplugintube with the parameters RR, LL, and sl to generate the solid geometry SG.
  6. 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