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

Method Reset

Common/DataModel/vtkPolyData.cxx:1072–1099  ·  view source on GitHub ↗

------------------------------------------------------------------------------ Begin inserting data all over again. Memory is not freed but otherwise objects are returned to their initial state.

Source from the content-addressed store, hash-verified

1070// Begin inserting data all over again. Memory is not freed but otherwise
1071// objects are returned to their initial state.
1072void vtkPolyData::Reset()
1073{
1074 if (this->Verts != nullptr)
1075 {
1076 this->Verts->Reset();
1077 }
1078 if (this->Lines != nullptr)
1079 {
1080 this->Lines->Reset();
1081 }
1082 if (this->Polys != nullptr)
1083 {
1084 this->Polys->Reset();
1085 }
1086 if (this->Strips != nullptr)
1087 {
1088 this->Strips->Reset();
1089 }
1090
1091 if (this->GetPoints() != nullptr)
1092 {
1093 this->GetPoints()->Reset();
1094 }
1095
1096 // discard Links and Cells
1097 this->DeleteLinks();
1098 this->DeleteCells();
1099}
1100
1101//------------------------------------------------------------------------------
1102// Reverse the order of point ids defining the cell.

Callers 4

CopyCellsMethod · 0.45
GetPointCellsMethod · 0.45
GetCellEdgeNeighborsMethod · 0.45
GetCellNeighborsMethod · 0.45

Calls 3

DeleteLinksMethod · 0.95
DeleteCellsMethod · 0.95
GetPointsMethod · 0.45

Tested by

no test coverage detected