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

Method IsGhostNode

Filters/Geometry/vtkStructuredGridConnectivity.cxx:652–671  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

650
651//------------------------------------------------------------------------------
652bool vtkStructuredGridConnectivity::IsGhostNode(
653 int GridExtent[6], int RealExtent[6], int i, int j, int k)
654{
655 // STEP 0: Check if there are any ghost-layers. Note, if the original data
656 // that the user is registering contains ghost-layers, the users must set
657 // the number of ghost-layers.
658 if (this->NumberOfGhostLayers == 0)
659 {
660 // Grid has no ghost-layers, so, the node cannot be a ghost node
661 return false;
662 }
663
664 bool status = false;
665 if (!this->IsNodeWithinExtent(i, j, k, RealExtent) &&
666 this->IsNodeWithinExtent(i, j, k, GridExtent))
667 {
668 status = true;
669 }
670 return (status);
671}
672
673//------------------------------------------------------------------------------
674bool vtkStructuredGridConnectivity::IsNodeOnBoundary(int i, int j, int k)

Callers 1

MarkNodePropertyMethod · 0.95

Calls 1

IsNodeWithinExtentMethod · 0.80

Tested by

no test coverage detected