protected void curveVertexCheck(int shape){
  if (shape != POLYGON) {
    throw new RuntimeException("You must use beginShape() or " + "beginShape(POLYGON) before curveVertex()");
  }
  if (curveVertices == null) {
    curveVertices=new float[128][3];
  }
  if (curveVertexCount == curveVertices.length) {
    float[][] temp=new float[curveVertexCount << 1][3];
    System.arraycopy(curveVertices,0,temp,0,curveVertexCount);
    curveVertices=temp;
  }
  curveInitCheck();
}

protected void curveVertexCheck ( int shape ) { if ( shape != POLYGON ) { throw new RuntimeException ( "You must use beginShape() or " + "beginShape(POLYGON) before curveVertex()" ) ; } if ( curveVertices == null ) { curveVertices = new float [ 128 ] [ 3 ] ; } if ( curveVertexCount == curveVertices . length ) { float [ ] [ ] temp = new float [ curveVertexCount << 1 ] [ 3 ] ; System . arraycopy ( curveVertices , 0 , temp , 0 , curveVertexCount ) ; curveVertices = temp ; } curveInitCheck ( ) ; }
perform initialization specific to curvevertex ( ) , and handle standard error modes . can be overridden by subclasses that need the flexibility .
