Skip to content

Commit d430099

Browse files
committed
JavaDocs Updated for getVertexCount() in PShape class
1 parent 93d2f93 commit d430099

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

core/src/processing/core/PShape.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2335,13 +2335,13 @@ protected void setPath(int vcount, float[][] verts, int ccount, int[] codes) {
23352335
}
23362336

23372337
/**
2338-
* The <b>getVertexCount()</b> method returns the number of vertices that
2339-
* make up a <b>PShape</b>. In the above example, the value 4 is returned by the
2338+
* The <b>getVertexCount()</b> method returns the number of vertices (with an option to count children by passing true as boolean parameter to method call) that
2339+
* make up a <b>PShape</b>. By default, it does not count child vertices for GROUP shapes. To include child vertices, pass <b>true</b> as a boolean parameter. In the above example, the value 4 is returned by the
23402340
* <b>getVertexCount()</b> method because 4 vertices are defined in
23412341
* <b>setup()</b>.
23422342
*
23432343
* @webref pshape:method
2344-
* @webBrief Returns the total number of vertices as an int
2344+
* @webBrief Returns the total number of vertices as an int with an option to count children Vertex for GROUP Shapes
23452345
* @see PShape#getVertex(int)
23462346
* @see PShape#setVertex(int, float, float)
23472347
*/

0 commit comments

Comments
 (0)