| 1081 | } |
| 1082 | |
| 1083 | void grid_volume::pad_self(direction d) { |
| 1084 | num[d % 3] += 2; // Pad in both directions by one grid point. |
| 1085 | num_changed(); |
| 1086 | shift_origin(d, -2); |
| 1087 | } |
| 1088 | |
| 1089 | ivec grid_volume::icenter() const { |
| 1090 | /* Find the center of the user's cell. This will be used as the |