------------------------------------------------------------------------------
| 1449 | |
| 1450 | //------------------------------------------------------------------------------ |
| 1451 | bool vtkStructuredAMRGridConnectivity::IsNodeOnBoundaryOfExtent(int i, int j, int k, int ext[6]) |
| 1452 | { |
| 1453 | bool status = false; |
| 1454 | switch (this->DataDescription) |
| 1455 | { |
| 1456 | case vtkStructuredData::VTK_STRUCTURED_X_LINE: |
| 1457 | if (i == ext[0] || i == ext[1]) |
| 1458 | { |
| 1459 | status = true; |
| 1460 | } |
| 1461 | break; |
| 1462 | case vtkStructuredData::VTK_STRUCTURED_Y_LINE: |
| 1463 | if (j == ext[2] || j == ext[3]) |
| 1464 | { |
| 1465 | status = true; |
| 1466 | } |
| 1467 | break; |
| 1468 | case vtkStructuredData::VTK_STRUCTURED_Z_LINE: |
| 1469 | if (k == ext[4] || k == ext[5]) |
| 1470 | { |
| 1471 | status = true; |
| 1472 | } |
| 1473 | break; |
| 1474 | case vtkStructuredData::VTK_STRUCTURED_XY_PLANE: |
| 1475 | if ((i == ext[0] || i == ext[1]) || (j == ext[2] || j == ext[3])) |
| 1476 | { |
| 1477 | status = true; |
| 1478 | } |
| 1479 | break; |
| 1480 | case vtkStructuredData::VTK_STRUCTURED_YZ_PLANE: |
| 1481 | if ((j == ext[2] || j == ext[3]) || (k == ext[4] || k == ext[5])) |
| 1482 | { |
| 1483 | status = true; |
| 1484 | } |
| 1485 | break; |
| 1486 | case vtkStructuredData::VTK_STRUCTURED_XZ_PLANE: |
| 1487 | if ((i == ext[0] || i == ext[1]) || (k == ext[4] || k == ext[5])) |
| 1488 | { |
| 1489 | status = true; |
| 1490 | } |
| 1491 | break; |
| 1492 | case vtkStructuredData::VTK_STRUCTURED_XYZ_GRID: |
| 1493 | if ((i == ext[0] || i == ext[1]) || (j == ext[2] || j == ext[3]) || |
| 1494 | (k == ext[4] || k == ext[5])) |
| 1495 | { |
| 1496 | status = true; |
| 1497 | } |
| 1498 | break; |
| 1499 | default: |
| 1500 | std::cout << "Data description is: " << this->DataDescription << "\n"; |
| 1501 | std::cout.flush(); |
| 1502 | assert("pre: Undefined data-description!" && false); |
| 1503 | } // END switch |
| 1504 | return (status); |
| 1505 | } |
| 1506 | |
| 1507 | //------------------------------------------------------------------------------ |
| 1508 | bool vtkStructuredAMRGridConnectivity::IsNodeInterior(int i, int j, int k, int GridExtent[6]) |
no test coverage detected