PLstar

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - PL/Point Lists
Introduced first in SolidGeometry 2.1, Creation date: 2015-01-01, Last change: 2025-09-14

returns a 2D point list of a star or star segment

Description

PLstar starts not(!) at (R,0), but the first edge is going in y-direction. This has been done to simply generate squares or 2*n-Polygons. By using the offset angle, it is possible to start where you want.

See Also: PLknurled , PLcircle , PLcircseg , PLevolvente , PLgearDIN , PLkidney , PLrand , PLspiral , PLsquare

Example Illustration

 missing image of PLstar(R,nf,dw,Ry,ow,sk)

Syntax

PL=PLstar(R,[nf,dw,Ry,ow,sk])

Input Parameter

R: Radius
nf: number of facets (default is nofrd (R,0.05))
dw: circle segment ](0..2(pi] (default is 2*pi)
Ry: Radius if ellipse (default is R)
ow: Offset angle
sk: shortage factor;default 0.0

Output Parameter

PL: Point / Vertex list

Examples


PLstar(5,100,'','','',0.95)




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