------------------------------------------------------------------------------
| 1424 | |
| 1425 | //------------------------------------------------------------------------------ |
| 1426 | bool vtkStructuredAMRGridConnectivity::IsNodeOnSharedBoundary( |
| 1427 | int i, int j, int k, int gridId, int gridExt[6]) |
| 1428 | { |
| 1429 | bool status = false; |
| 1430 | |
| 1431 | if (this->IsNodeOnBoundaryOfExtent(i, j, k, gridExt)) |
| 1432 | { |
| 1433 | // For the vertex corresponding to i,j,k, the node orientation tuple |
| 1434 | // encodes on which face the node lies. |
| 1435 | int nodeOrientation[3]; |
| 1436 | this->GetNodeOrientation(i, j, k, gridExt, nodeOrientation); |
| 1437 | for (int ii = 0; ii < 3; ++ii) |
| 1438 | { |
| 1439 | if ((nodeOrientation[ii] != AMRBlockFace::NOT_ON_BLOCK_FACE) && |
| 1440 | this->HasBlockConnection(gridId, nodeOrientation[ii])) |
| 1441 | { |
| 1442 | status = true; |
| 1443 | break; |
| 1444 | } |
| 1445 | } // END for all dimensions |
| 1446 | } // END if node on boundary |
| 1447 | return (status); |
| 1448 | } |
| 1449 | |
| 1450 | //------------------------------------------------------------------------------ |
| 1451 | bool vtkStructuredAMRGridConnectivity::IsNodeOnBoundaryOfExtent(int i, int j, int k, int ext[6]) |
no test coverage detected