------------------------------------------------------------------------------
| 776 | |
| 777 | //------------------------------------------------------------------------------ |
| 778 | void vtkCellArray::ShallowCopy(vtkAbstractCellArray* ca) |
| 779 | { |
| 780 | auto other = vtkCellArray::SafeDownCast(ca); |
| 781 | if (!other) |
| 782 | { |
| 783 | vtkErrorMacro("Cannot shallow copy from a non-vtkCellArray."); |
| 784 | return; |
| 785 | } |
| 786 | if (other == this) |
| 787 | { |
| 788 | return; |
| 789 | } |
| 790 | |
| 791 | if (this->Offsets != other->Offsets) |
| 792 | { |
| 793 | this->Offsets = other->Offsets; |
| 794 | this->Modified(); |
| 795 | } |
| 796 | if (this->Connectivity != other->Connectivity) |
| 797 | { |
| 798 | this->Connectivity = other->Connectivity; |
| 799 | this->Modified(); |
| 800 | } |
| 801 | this->StorageType = other->StorageType; |
| 802 | } |
| 803 | |
| 804 | //------------------------------------------------------------------------------ |
| 805 | void vtkCellArray::Append(vtkCellArray* src, vtkIdType pointOffset) |