Return the face point index
| 199 | |
| 200 | // Return the face point index |
| 201 | inline label facePoint |
| 202 | ( |
| 203 | const int facei, |
| 204 | const block& block, |
| 205 | const label i, |
| 206 | const label j |
| 207 | ) |
| 208 | { |
| 209 | switch (facei) |
| 210 | { |
| 211 | case 0: |
| 212 | return block.pointLabel(0, i, j); |
| 213 | case 1: |
| 214 | return block.pointLabel(block.density().x(), i, j); |
| 215 | case 2: |
| 216 | return block.pointLabel(i, 0, j); |
| 217 | case 3: |
| 218 | return block.pointLabel(i, block.density().y(), j); |
| 219 | case 4: |
| 220 | return block.pointLabel(i, j, 0); |
| 221 | case 5: |
| 222 | return block.pointLabel(i, j, block.density().z()); |
| 223 | default: |
| 224 | return -1; |
| 225 | } |
| 226 | } |
| 227 | |
| 228 | // Return the neighbour face point from the signed indices |
| 229 | inline label facePointN |
no test coverage detected