Guard the naive thick plane code with ifdef THICK_PLANE