Closed krober10nd closed 3 years ago
>> help draw_polygon_on_figure
Draw a polygon on an open figure by clicking the screen.
Type the character `h` on the keyboard to finish drawing the polygon.
By default, the function merges points less than `ptol` distance apart
from one another. By default `ptol` is set to 0.1 units.
Usage:
polygon = draw_polygon_figure()
polygon = draw_polygon_figure(0.2)
Inputs:
ptol: distance to merge nearby points (default=0.1).
Outputs:
polygon: an array of coordinates that the user has drawn.
Author: Keith J. Roberts
Created: July 2021