------------------------------------------------------------------------------
| 185 | |
| 186 | //------------------------------------------------------------------------------ |
| 187 | void vtkDistributedDataFilter::SetCuts(vtkBSPCuts* cuts) |
| 188 | { |
| 189 | if (cuts == this->UserCuts) |
| 190 | { |
| 191 | return; |
| 192 | } |
| 193 | if (this->UserCuts) |
| 194 | { |
| 195 | this->UserCuts->Delete(); |
| 196 | this->UserCuts = nullptr; |
| 197 | } |
| 198 | if (cuts) |
| 199 | { |
| 200 | cuts->Register(this); |
| 201 | this->UserCuts = cuts; |
| 202 | } |
| 203 | // Delete the Kdtree so that it is regenerated next time. |
| 204 | if (this->Kdtree) |
| 205 | { |
| 206 | this->Kdtree->SetCuts(cuts); |
| 207 | } |
| 208 | this->Modified(); |
| 209 | } |
| 210 | |
| 211 | //------------------------------------------------------------------------------ |
| 212 | void vtkDistributedDataFilter::SetUserRegionAssignments(const int* map, int numRegions) |
no test coverage detected