MCPcopy Create free account
hub / github.com/Kitware/VTK / IsNodeOnSharedBoundary

Method IsNodeOnSharedBoundary

Filters/Geometry/vtkStructuredAMRGridConnectivity.cxx:1426–1448  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

1424
1425//------------------------------------------------------------------------------
1426bool 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//------------------------------------------------------------------------------
1451bool vtkStructuredAMRGridConnectivity::IsNodeOnBoundaryOfExtent(int i, int j, int k, int ext[6])

Callers 1

MarkNodePropertyMethod · 0.95

Calls 3

GetNodeOrientationMethod · 0.95
HasBlockConnectionMethod · 0.80

Tested by

no test coverage detected