------------------------------------------------------------------------------
| 515 | |
| 516 | //------------------------------------------------------------------------------ |
| 517 | void vtkExplicitStructuredGrid::BuildLinks() |
| 518 | { |
| 519 | // Remove the old links if they are already built |
| 520 | if (!this->Points) |
| 521 | { |
| 522 | return; |
| 523 | } |
| 524 | |
| 525 | // Different types of links depending on whether the data can be edited after |
| 526 | // initial creation. |
| 527 | if (!this->Links) |
| 528 | { |
| 529 | if (!this->Editable) |
| 530 | { |
| 531 | this->Links = vtkSmartPointer<vtkStaticCellLinks>::New(); |
| 532 | } |
| 533 | else |
| 534 | { |
| 535 | this->Links = vtkSmartPointer<vtkCellLinks>::New(); |
| 536 | static_cast<vtkCellLinks*>(this->Links.Get())->Allocate(this->GetNumberOfPoints()); |
| 537 | } |
| 538 | this->Links->SetDataSet(this); |
| 539 | } |
| 540 | else if (this->Points->GetMTime() > this->Links->GetMTime()) |
| 541 | { |
| 542 | this->Links->SetDataSet(this); |
| 543 | } |
| 544 | this->Links->BuildLinks(); |
| 545 | } |
| 546 | |
| 547 | //------------------------------------------------------------------------------ |
| 548 | void vtkExplicitStructuredGrid::GenerateGhostArray(int zeroExt[6], bool vtkNotUsed(cellOnly)) |
no test coverage detected