if (buffer != null) {
buffer.rewind();
bulkPut(vb.getFormat(), newVerts,buffer);
int index = vertexData.size();
newVerts.position(vertexData.size() * vb.getNumComponents());
for (int j = 0; j < newVertices.size(); j++) {
int oldInd = indiceMap.get(index) ;
for (int i = 0; i < vb.getNumComponents(); i++) {
putValue(vb.getFormat(), newVerts, buffer, oldInd* vb.getNumComponents() + i);
}