MCPcopy Index your code
hub / github.com/benfry/processing4 / getVertexCount

Method getVertexCount

core/src/processing/core/PShape.java:2322–2327  ·  view source on GitHub ↗

The getVertexCount() method returns the number of vertices that make up a PShape . In the above example, the value 4 is returned by the getVertexCount() method because 4 vertices are defined in setup() . @webref pshape:method @webBrief Returns the total number of vertices

()

Source from the content-addressed store, hash-verified

2320 * @see PShape#setVertex(int, float, float)
2321 */
2322 public int getVertexCount() {
2323 if (family == GROUP || family == PRIMITIVE) {
2324 PGraphics.showWarning(NO_VERTICES_ERROR);
2325 }
2326 return vertexCount;
2327 }
2328
2329
2330 /**

Callers 1

testDecimalsMethod · 0.45

Calls 1

showWarningMethod · 0.95

Tested by 1

testDecimalsMethod · 0.36