@webref shape:vertex @brief Starts a new contour @see PShape#endContour()
()
| 626 | * @see PShape#endContour() |
| 627 | */ |
| 628 | public void beginContour() { |
| 629 | if (!openShape) { |
| 630 | PGraphics.showWarning(OUTSIDE_BEGIN_END_ERROR, "beginContour()"); |
| 631 | return; |
| 632 | } |
| 633 | |
| 634 | if (family == GROUP) { |
| 635 | PGraphics.showWarning("Cannot begin contour in GROUP shapes"); |
| 636 | return; |
| 637 | } |
| 638 | |
| 639 | if (openContour) { |
| 640 | PGraphics.showWarning("Already called beginContour()."); |
| 641 | return; |
| 642 | } |
| 643 | openContour = true; |
| 644 | beginContourImpl(); |
| 645 | } |
| 646 | |
| 647 | |
| 648 | protected void beginContourImpl() { |
no test coverage detected