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

Method SelectCell

Common/DataModel/vtkClosestPointStrategy.h:122–138  ·  view source on GitHub ↗

Handle cases where starting cell is provided or not

Source from the content-addressed store, hash-verified

120
121// Handle cases where starting cell is provided or not
122inline vtkCell* vtkClosestPointStrategy::SelectCell(
123 vtkPointSet* self, vtkIdType cellId, vtkCell* cell, vtkGenericCell* gencell)
124{
125 if (!cell)
126 {
127 if (gencell)
128 {
129 self->GetCell(cellId, gencell);
130 cell = gencell;
131 }
132 else
133 {
134 cell = self->GetCell(cellId);
135 }
136 }
137 return cell;
138}
139
140VTK_ABI_NAMESPACE_END
141#endif

Callers 2

FindCellWalkFunction · 0.80
FindCellMethod · 0.80

Calls 1

GetCellMethod · 0.45

Tested by

no test coverage detected