/** * Generate a new set of points for an indexed triangle fan array. We * build the strip from the existing points, and there's no need to * re-order the points for the indexes this time. As for the simple fan, * we use the first index, the lower-right corner as the apex for the fan. * * @param data The data to shape the calculations on * @throws InvalidArraySizeException The array is not big enough to contain * the requested geometry */ private void indexedTriangleFans(GeometryData data) throws InvalidArraySizeException { generateIndexedCoordinates(data); if((data.geometryComponents & GeometryData.NORMAL_DATA) != 0) generateIndexedNormals(data); if((data.geometryComponents & GeometryData.TEXTURE_2D_DATA) != 0) generateTriTexture2D(data); else if((data.geometryComponents & GeometryData.TEXTURE_3D_DATA) != 0) generateTriTexture3D(data); // now let's do the index list }
throws InvalidArraySizeException generateIndexedCoordinates(data);
throws InvalidArraySizeException generateIndexedCoordinates(data);
throws InvalidArraySizeException generateIndexedCoordinates(data);