/** * Generate a new set of points for a triangle strip array. Each side is a * strip of two faces. * * @param data The data to patch the calculations on * @throws InvalidArraySizeException The array is not big enough to contain * the requested geometry */ private void lineStrips(GeometryData data) throws InvalidArraySizeException { generateIndexedLineCoordinates(data); if((data.geometryComponents & GeometryData.NORMAL_DATA) != 0) generateIndexedLineNormals(data); if((data.geometryComponents & GeometryData.TEXTURE_2D_DATA) != 0) generateLineTexture2D(data); else if((data.geometryComponents & GeometryData.TEXTURE_3D_DATA) != 0) generateLineTexture3D(data); if(data.stripCounts == null) data.stripCounts = new int[1]; else if(data.stripCounts.length < 1) throw new InvalidArraySizeException("Strip counts", data.stripCounts.length, 1); data.numStrips = 1; data.stripCounts[0] = facetCount + 1; }
throws InvalidArraySizeException generateIndexedLineCoordinates(data);
throws InvalidArraySizeException generateIndexedLineCoordinates(data);