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
()
| 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 | /** |