PL=PLui([PL,col,linw])
PL : | Optional PL; default is []; | |
col : | Optional color; default is 'r-' | |
linw : | optional line width; default is 2 |
PL : | Final Point List |
cla; PLui()
cla; PLui(CPLsample(3))
cla; PLui(CPLsample(3),'b-',3)
This function, PLui
, is an interactive tool for creating and modifying closed polygon lists (CPLs). It is part of the SolidGeometry library and was introduced in version 4.7. The function allows users to interactively set, remove, and shift points using mouse buttons.
[]
.'r-'
(red line).2
.getfuncparams
function. This function extracts the specified parameter or assigns a default value if the parameter is not provided.VLui
function is called with the parameters PL
, col
, and linw
. This function handles the interactive user interface for modifying the polygon.PL
is reduced to its first two columns, which likely represent the x and y coordinates of the points.circshift
function is used to circularly shift the points in the list by one position. This operation might be used to reorder the points for a specific purpose.The function is designed to be used in a graphical environment where users can visually manipulate the shape of a polygon by interacting with its points and edges.
Algorithm explaination created using ChatGPT on 2025-08-19 01:05. (Please note: No guarantee for the correctness of this explanation)