//Use this array to store segment
    // coordinate data
    float[] theData = new float[6]; 
    int theType;//store type of segment here

Figure 8