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
CPL=CPLsocketscrewed([diam])
diam: | [max min #] ; default is [10 8.5 2] |
CPL: | Kontour |
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.
diam using the function getfuncparams. If not provided, use the default value [10, 8.5, 2].diam to Da (Diameter of Axis) and the second element to Dc (Diameter of cutting edge).diam to fl.fl:CPLmotorshaft with parameters Da, Dc, and 'Diameter' to generate the contour.d as the difference between Da and Dc. Generate two contours, CPL1 and CPL2, using CPLmotorshaft with adjusted parameters. Intersect these contours using CPLintersect and refine the result with CPLremstraightAmin to remove straight lines shorter than 0.01 mm.nargout==0), plot the resulting contour using SGfigure and CPLplot. Annotate the plot with the diameters Da and Dc.