| 661 | } |
| 662 | |
| 663 | vtkCellAttribute* vtkCellGrid::GetShapeAttribute() |
| 664 | { |
| 665 | if (!this->HaveShape) |
| 666 | { |
| 667 | return nullptr; |
| 668 | } |
| 669 | auto it = this->Attributes.find(this->ShapeAttribute.GetId()); |
| 670 | if (it == this->Attributes.end()) |
| 671 | { |
| 672 | return nullptr; |
| 673 | } |
| 674 | return it->second.GetPointer(); |
| 675 | } |
| 676 | |
| 677 | bool vtkCellGrid::SetShapeAttribute(vtkCellAttribute* shape) |
| 678 | { |