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

Method BlankPoint

Common/DataModel/vtkCartesianGrid.cxx:287–297  ·  view source on GitHub ↗

------------------------------------------------------------------------------ Turn off a particular data point.

Source from the content-addressed store, hash-verified

285//------------------------------------------------------------------------------
286// Turn off a particular data point.
287void vtkCartesianGrid::BlankPoint(vtkIdType ptId)
288{
289 vtkUnsignedCharArray* ghosts = this->GetPointGhostArray();
290 if (!ghosts)
291 {
292 this->AllocatePointGhostArray();
293 ghosts = this->GetPointGhostArray();
294 }
295 ghosts->SetValue(ptId, ghosts->GetValue(ptId) | vtkDataSetAttributes::HIDDENPOINT);
296 assert(!this->IsPointVisible(ptId));
297}
298
299//------------------------------------------------------------------------------
300void vtkCartesianGrid::BlankPoint(int i, int j, int k)

Calls 7

IsPointVisibleMethod · 0.95
GetDimensionsMethod · 0.95
GetPointGhostArrayMethod · 0.80
assertFunction · 0.50
SetValueMethod · 0.45
GetValueMethod · 0.45

Tested by 2

CreateStructuredGridFunction · 0.36