Rule-Constrained Grid Design