@webref shape:vertex @brief Ends a contour @see PShape#beginContour()
()
| 661 | * @see PShape#beginContour() |
| 662 | */ |
| 663 | public void endContour() { |
| 664 | if (!openShape) { |
| 665 | PGraphics.showWarning(OUTSIDE_BEGIN_END_ERROR, "endContour()"); |
| 666 | return; |
| 667 | } |
| 668 | |
| 669 | if (family == GROUP) { |
| 670 | PGraphics.showWarning("Cannot end contour in GROUP shapes"); |
| 671 | return; |
| 672 | } |
| 673 | |
| 674 | if (!openContour) { |
| 675 | PGraphics.showWarning("Need to call beginContour() first."); |
| 676 | return; |
| 677 | } |
| 678 | endContourImpl(); |
| 679 | openContour = false; |
| 680 | } |
| 681 | |
| 682 | |
| 683 | protected void endContourImpl() { |
no test coverage detected