| 637 | } |
| 638 | |
| 639 | vtkCellAttribute* vtkCellGrid::GetCellAttributeById(int attributeId) |
| 640 | { |
| 641 | for (const auto& entry : this->Attributes) |
| 642 | { |
| 643 | if (entry.second->GetId() == attributeId) |
| 644 | { |
| 645 | return entry.second; |
| 646 | } |
| 647 | } |
| 648 | return nullptr; |
| 649 | } |
| 650 | |
| 651 | vtkCellAttribute* vtkCellGrid::GetCellAttributeByName(const std::string& name) |
| 652 | { |