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

Method SetCuts

Filters/Parallel/vtkDistributedDataFilter.cxx:187–209  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

185
186//------------------------------------------------------------------------------
187void 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//------------------------------------------------------------------------------
212void vtkDistributedDataFilter::SetUserRegionAssignments(const int* map, int numRegions)

Callers 2

SingleProcessExecuteMethod · 0.45

Calls 3

DeleteMethod · 0.65
RegisterMethod · 0.45
ModifiedMethod · 0.45

Tested by

no test coverage detected