| 4835 | } |
| 4836 | |
| 4837 | int PSL_plotpolygon (struct PSL_CTRL *PSL, double *x, double *y, int n) { |
| 4838 | /* Draw and optionally fill polygons. If 20 or fewer points we use |
| 4839 | * the more expedited psl_patch function |
| 4840 | */ |
| 4841 | |
| 4842 | if (n <= 20) |
| 4843 | psl_patch (PSL, x, y, n); /* Small polygons can use the patch function */ |
| 4844 | else { |
| 4845 | PSL_plotline (PSL, x, y, n, PSL_MOVE); /* No stroke or close path yet; see next line */ |
| 4846 | PSL_command (PSL, "FO\n"); /* Close polygon and stroke/fill as set by PSL_setfill */ |
| 4847 | } |
| 4848 | |
| 4849 | return (PSL_NO_ERROR); |
| 4850 | } |
| 4851 | |
| 4852 | int PSL_setexec (struct PSL_CTRL *PSL, int action) { |
| 4853 | /* Enables of disables the execution of a PSL_plot_completion function at start of a PSL_plotinit overlay */ |
no test coverage detected