CPLsocketscrewed

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - CPL/Closed Polygon Lists
Introduced first in SolidGeometry 5.3, Creation date: 2023-04-30, Last change: 2025-09-15

Contour for an anti-rotation bushing

Description

If #==1 ==> CPLmotorshaft


See Also: CPLmotorshaft

Example Illustration

 missing image of CPLsocketscrewed(diam)

Syntax

CPL=CPLsocketscrewed([diam])

Input Parameter

diam: [max min #] ; default is [10 8.5 2]

Output Parameter

CPL: Kontour




Copyright 2023-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 algorithm is designed to generate a contour for an anti-rotation bushing using the function CPLsocketscrewed. The function is part of the SolidGeometry library and was introduced in version 5.3. It takes a single input parameter, diam, which is an array containing three elements: the maximum diameter, the minimum diameter, and a flag.

Input Parameters

Output

Algorithm Steps

  1. Retrieve the input parameter diam using the function getfuncparams. If not provided, use the default value [10, 8.5, 2].
  2. Assign the first element of diam to Da (Diameter of Axis) and the second element to Dc (Diameter of cutting edge).
  3. Assign the third element of diam to fl.
  4. Use a switch statement to determine the operation based on the value of fl:
  5. If no output is requested (nargout==0), plot the resulting contour using SGfigure and CPLplot. Annotate the plot with the diameters Da and Dc.
Algorithm explaination created using ChatGPT on 2025-08-19 00:41. (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