VLFLcreateshaft

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

returns a solid shaft model in the x/y plane

Description

This is a fully creator procedure to generates a 2.5D shaft structure of size X by Y with size H

Example Illustration

 missing image of VLFLcreateshaft(R,H);

Syntax

[VL,FL,CL,f]=VLFLcreateshaft(R,H);

Input Parameter

R: Radius
H: Size in Z [0..H]

Output Parameter

VL: Vertex list
FL: Facet list
CL: Contour list
f: number of facets

Examples

Shaft of radius 10 with height of 60 mm
closeall; [VL,FL]=VLFLcreateshaft (10,60); 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

Algorithm (Workflow)

This function, VLFLcreateshaft, is designed to generate a 2.5D model of a shaft. It takes two input parameters and returns four outputs.

Input Parameters

Output Results

Algorithm Steps

  1. The function calls VLFLcylinder with parameters H and R to create a cylindrical model. This function returns initial values for VL, FL, CL, and f.
  2. The vertex list VL is then transformed using two functions:
    • VLtrans0(VL): This function likely centers the vertices around the origin.
    • VLtransP(..., [0;0;H/2]): This function translates the vertices so that the shaft is centered along the z-axis, with its midpoint at H/2.

The function is part of the VLFL library, which is used for synthesizing 2.5D and 3D geometric models. The example provided in the comments demonstrates how to create and plot a shaft with a radius of 10 mm and a height of 60 mm using the VLFLplot function.

Algorithm explaination created using ChatGPT on 2025-08-18 22:38. (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