(int join)
| 2331 | |
| 2332 | |
| 2333 | @Override |
| 2334 | public void setStrokeJoin(int join) { |
| 2335 | if (openShape) { |
| 2336 | PGraphics.showWarning(INSIDE_BEGIN_END_ERROR, "setStrokeJoin()"); |
| 2337 | return; |
| 2338 | } |
| 2339 | |
| 2340 | if (family == GROUP) { |
| 2341 | for (int i = 0; i < childCount; i++) { |
| 2342 | PShapeOpenGL child = (PShapeOpenGL) children[i]; |
| 2343 | child.setStrokeJoin(join); |
| 2344 | } |
| 2345 | } else { |
| 2346 | if (is2D() && strokeJoin != join) { |
| 2347 | // Changing the stroke join on a 2D shape needs a |
| 2348 | // re-tessellation in order to replace the old join |
| 2349 | // geometry. |
| 2350 | markForTessellation(); |
| 2351 | } |
| 2352 | strokeJoin = join; |
| 2353 | } |
| 2354 | } |
| 2355 | |
| 2356 | |
| 2357 | @Override |
no test coverage detected