public void addVert(int vertIndex, int coordIndex, int normalIndex) { this.vertIndex.add(vertIndex); validateAddedTextureCoordinates(1); this.coordIndexLayers.get(0).add(coordIndex); this.normalIndex.add(normalIndex); this.count++; }
public void addVert(int vertIndex, int normalIndex, int...cords) { this.vertIndex.add(vertIndex); validateAddedTextureCoordinates(cords.length); for (int i = 0; i < cords.length; i++) { this.coordIndexLayers.get(i).add(cords[i]); } this.normalIndex.add(normalIndex); this.count++; }
public void addVert(int vertIndex, int coordIndex0, int coordIndex1, int normalIndex) { this.vertIndex.add(vertIndex); validateAddedTextureCoordinates(2); this.coordIndexLayers.get(0).add(coordIndex0); this.coordIndexLayers.get(1).add(coordIndex1); this.normalIndex.add(normalIndex); this.count++; }