Although recent years have seen substantial improvements in the perfomance of photonic-crystal cavities, their design has been a rather hit and miss affair. By turning around the general approach to cavity design through the use of Bloch waves, an important avenue to the discovery of optimal cavity geometries could be opened.