MCPcopy Index your code
hub / github.com/processing/processing / endShape

Method endShape

java/libraries/dxf/src/processing/dxf/RawDXF.java:387–402  ·  view source on GitHub ↗
(int mode)

Source from the content-addressed store, hash-verified

385
386
387 public void endShape(int mode) {
388 if (shape == POLYGON) {
389 for (int i = 0; i < vertexCount - 1; i++) {
390 writeLine(i, i+1);
391 }
392 if (mode == CLOSE) {
393 writeLine(vertexCount - 1, 0);
394 }
395 }
396 /*
397 if ((vertexCount != 0) &&
398 ((shape != LINE_STRIP) && (vertexCount != 1))) {
399 System.err.println("Extra vertex boogers found.");
400 }
401 */
402 }
403}

Callers

nothing calls this directly

Calls 1

writeLineMethod · 0.95

Tested by

no test coverage detected