------------------------------------------------------------------------------
| 1312 | |
| 1313 | //------------------------------------------------------------------------------ |
| 1314 | void vtkStructuredAMRGridConnectivity::GetNodeOrientation( |
| 1315 | int i, int j, int k, int ext[6], int orientation[3]) |
| 1316 | { |
| 1317 | orientation[0] = orientation[1] = orientation[2] = AMRBlockFace::NOT_ON_BLOCK_FACE; |
| 1318 | switch (this->DataDescription) |
| 1319 | { |
| 1320 | case vtkStructuredData::VTK_STRUCTURED_X_LINE: |
| 1321 | orientation[0] = this->Get1DOrientation(i, ext[0], ext[1], AMRBlockFace::LEFT, |
| 1322 | AMRBlockFace::RIGHT, AMRBlockFace::NOT_ON_BLOCK_FACE); |
| 1323 | break; |
| 1324 | case vtkStructuredData::VTK_STRUCTURED_Y_LINE: |
| 1325 | orientation[1] = this->Get1DOrientation(j, ext[2], ext[3], AMRBlockFace::BOTTOM, |
| 1326 | AMRBlockFace::TOP, AMRBlockFace::NOT_ON_BLOCK_FACE); |
| 1327 | break; |
| 1328 | case vtkStructuredData::VTK_STRUCTURED_Z_LINE: |
| 1329 | orientation[2] = this->Get1DOrientation(k, ext[4], ext[5], AMRBlockFace::BACK, |
| 1330 | AMRBlockFace::FRONT, AMRBlockFace::NOT_ON_BLOCK_FACE); |
| 1331 | break; |
| 1332 | case vtkStructuredData::VTK_STRUCTURED_XY_PLANE: |
| 1333 | orientation[0] = this->Get1DOrientation(i, ext[0], ext[1], AMRBlockFace::LEFT, |
| 1334 | AMRBlockFace::RIGHT, AMRBlockFace::NOT_ON_BLOCK_FACE); |
| 1335 | orientation[1] = this->Get1DOrientation(j, ext[2], ext[3], AMRBlockFace::BOTTOM, |
| 1336 | AMRBlockFace::TOP, AMRBlockFace::NOT_ON_BLOCK_FACE); |
| 1337 | break; |
| 1338 | case vtkStructuredData::VTK_STRUCTURED_YZ_PLANE: |
| 1339 | orientation[1] = this->Get1DOrientation(j, ext[2], ext[3], AMRBlockFace::BOTTOM, |
| 1340 | AMRBlockFace::TOP, AMRBlockFace::NOT_ON_BLOCK_FACE); |
| 1341 | orientation[2] = this->Get1DOrientation(k, ext[4], ext[5], AMRBlockFace::BACK, |
| 1342 | AMRBlockFace::FRONT, AMRBlockFace::NOT_ON_BLOCK_FACE); |
| 1343 | break; |
| 1344 | case vtkStructuredData::VTK_STRUCTURED_XZ_PLANE: |
| 1345 | orientation[0] = this->Get1DOrientation(i, ext[0], ext[1], AMRBlockFace::LEFT, |
| 1346 | AMRBlockFace::RIGHT, AMRBlockFace::NOT_ON_BLOCK_FACE); |
| 1347 | orientation[2] = this->Get1DOrientation(k, ext[4], ext[5], AMRBlockFace::BACK, |
| 1348 | AMRBlockFace::FRONT, AMRBlockFace::NOT_ON_BLOCK_FACE); |
| 1349 | break; |
| 1350 | case vtkStructuredData::VTK_STRUCTURED_XYZ_GRID: |
| 1351 | orientation[0] = this->Get1DOrientation(i, ext[0], ext[1], AMRBlockFace::LEFT, |
| 1352 | AMRBlockFace::RIGHT, AMRBlockFace::NOT_ON_BLOCK_FACE); |
| 1353 | orientation[1] = this->Get1DOrientation(j, ext[2], ext[3], AMRBlockFace::BOTTOM, |
| 1354 | AMRBlockFace::TOP, AMRBlockFace::NOT_ON_BLOCK_FACE); |
| 1355 | orientation[2] = this->Get1DOrientation(k, ext[4], ext[5], AMRBlockFace::BACK, |
| 1356 | AMRBlockFace::FRONT, AMRBlockFace::NOT_ON_BLOCK_FACE); |
| 1357 | break; |
| 1358 | default: |
| 1359 | std::cout << "Data description is: " << this->DataDescription << "\n"; |
| 1360 | std::cout.flush(); |
| 1361 | assert("pre: Undefined data-description!" && false); |
| 1362 | } |
| 1363 | } |
| 1364 | |
| 1365 | //------------------------------------------------------------------------------ |
| 1366 | bool vtkStructuredAMRGridConnectivity::IsNodeWithinExtent(int i, int j, int k, int GridExtent[6]) |
no test coverage detected