------------------------------------------------------------------------------ Begin inserting data all over again. Memory is not freed but otherwise objects are returned to their initial state.
| 1070 | // Begin inserting data all over again. Memory is not freed but otherwise |
| 1071 | // objects are returned to their initial state. |
| 1072 | void 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. |
no test coverage detected