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

Method ReverseCell

Common/DataModel/vtkPolyData.cxx:1103–1113  ·  view source on GitHub ↗

------------------------------------------------------------------------------ Reverse the order of point ids defining the cell.

Source from the content-addressed store, hash-verified

1101//------------------------------------------------------------------------------
1102// Reverse the order of point ids defining the cell.
1103void vtkPolyData::ReverseCell(vtkIdType cellId)
1104{
1105 if (!this->Cells)
1106 {
1107 this->BuildCells();
1108 }
1109
1110 const TaggedCellId tag = this->Cells->GetTag(cellId);
1111 vtkCellArray* cells = this->GetCellArrayInternal(tag);
1112 cells->ReverseCellAtId(tag.GetCellId());
1113}
1114
1115//------------------------------------------------------------------------------
1116// Add a point to the cell data structure (after cell pointers have been

Callers 3

RequestDataMethod · 0.45
TraverseAndOrderMethod · 0.45
RequestDataMethod · 0.45

Calls 5

BuildCellsMethod · 0.95
GetCellArrayInternalMethod · 0.95
GetTagMethod · 0.80
ReverseCellAtIdMethod · 0.80
GetCellIdMethod · 0.45

Tested by

no test coverage detected