by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - CPL/Closed Polygon Lists
Introduced first in SolidGeometry 4.8, Creation date: 2020-01-03, Last change: 2025-09-14
See Also: CPLbufferlines
, CPLfindsmalldist
h=CPLplotbufferlines([CPL,w])
CPL: | CLosed Polygon Line | |
w: | distance between the buffer lines, default is maximal 15 lines |
h: | handle to graphics |
SGfigure; CPLplotbufferlines(CPLsample(29));
SGfigure; CPLplotbufferlines(CPLsample(25),.1);
This function, CPLplotbufferlines, is designed to plot buffer lines for a closed polygon contour. It is part of the SolidGeometry library and was introduced in version 4.8. The function takes in parameters related to closed polygon lines and the distance between buffer lines, and outputs a handle to the graphics.
CPLsample(29).ss divided by 30, with a maximum of 15 lines.CPL parameter using getfuncparams. If not provided, it defaults to CPLsample(29).sofBB and BBofCPL functions.w is determined using getfuncparams. If not specified, it defaults to min(ss(ss>0))/30.CPLi set to CPL.CPLbuffer is called to create a buffer line at a distance -w from the current polygon.CPLi is not empty, it increments the counter s and plots the buffer line using CPLplot with a color determined by colofn.CPLi becomes empty, indicating no further buffer lines can be created.h to the plotted graphics.