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

Method IsCellVisible

Common/DataModel/vtkExplicitStructuredGrid.cxx:715–719  ·  view source on GitHub ↗

------------------------------------------------------------------------------ Return non-zero if the specified cell is visible (i.e., not blanked)

Source from the content-addressed store, hash-verified

713//------------------------------------------------------------------------------
714// Return non-zero if the specified cell is visible (i.e., not blanked)
715unsigned char vtkExplicitStructuredGrid::IsCellVisible(vtkIdType cellId)
716{
717 vtkUnsignedCharArray* ghosts = this->GetCellGhostArray();
718 return (ghosts && (ghosts->GetValue(cellId) & MASKED_CELL_VALUE)) ? 0 : 1;
719}
720
721//------------------------------------------------------------------------------
722// Return non-zero if the specified cell is a ghost cell

Callers 6

GetCellTypeMethod · 0.95
GetCellSizeMethod · 0.95
GetCellMethod · 0.95
BlankCellMethod · 0.95
FindConnectedFacesMethod · 0.95
ReorderCellsPointsMethod · 0.95

Calls 2

GetCellGhostArrayMethod · 0.80
GetValueMethod · 0.45

Tested by

no test coverage detected