by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - PL/Point Lists
Introduced first in SolidGeometry 5.4, Creation date: 2023-10-13, Last change: 2025-09-15
See Also: PLhexalobular
, PLinbus
, PLcircle
, PLcircseg
, PLevolvente
, PLgearDIN
, PLkidney
, PLrand
, PLspiral
, PLsquare
, PLstar
[PL,Rm]=PLwrench([D,n])
D: | DIAMETER NOT RADIUS! default is 1/4 Inch | |
n: | number of faces; default is 6 |
PL: | Point list | |
Rm: | Radius of circle for PLcircle |
PLwrench(10)
The function PLwrench is designed to generate a point list (PL) and a radius (Rm) for a polygonal shape, specifically a wrench shape, based on the given diameter and number of faces. It is part of the SolidGeometry library and is similar to the PLinbus function.
The function begins by checking the number of output arguments requested:
nargout==0), it calls the PLinbus function with the provided arguments. This implies that the function is used for its side effects, such as plotting or displaying the shape.PLinbus with the provided arguments and returns the point list and radius.To generate a wrench shape with a diameter of 10 mm and the default number of faces (6), you would call:
PLwrench(10)
The function is related to other polygon and shape generation functions in the SolidGeometry library, such as PLhexalobular, PLcircle, and PLgearDIN, among others.