Add extruded map flattening and the appropriate offset increments.
Use non-flattened when assembling the LHS.
Add flattened and non-flattened case switching.
Fix extruded map dimension for flattened and non-flattened cases.