mesh.getGeometryInfo().setNormals(mesh.getGeometryInfo().getNormals(), mesh.isUseDirectGL(), mesh.isUseVBOs());
}
//If the mesh has more than 20 vertices, use a display list for faster rendering
if (mesh.getVertexCount() > 20)
mesh.generateAndUseDisplayLists();
//Set the material to the mesh (determines the reaction to the lightning)
if (mesh.getMaterial() == null)
mesh.setMaterial(material);
mesh.setDrawNormals(false);
}