CPLspiral

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - CPL/Closed Polygon Lists
Introduced first in SolidGeometry 2.7, Creation date: 2015-09-24, Last change: 2025-09-14

returns a closed polygon in spiral shape



See Also: CPLspringSpiral , PLevolvente , PLgrowline , SGspringSpiral , SGspringSpiralbolt

Example Illustration

 missing image of CPLspiral(RI,RO,ws,d,n,m)

Syntax

PL=CPLspiral(RI,RO,[ws,d,n,m])

Input Parameter

RI: Inner radius
RO: Outer radius
ws: turning angle; default is 2pi
d: wall thickness; default is (RO-RI)/2/(wm/(2*pi)+1
n: number of points; default is nofrd
m: number of spokes

Output Parameter

PL: Point list [nx2]

Examples


CPLspiral(3,10,10*2*pi) % Outer radius is 10, core circle has radius 3, 10 complete windings

CPLspiral(1,15,.5*pi,1,'',6); % used to create spokes for q torque control wheel




Copyright 2015-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

Last html export of this page out of FM database by TL: 2025-09-21