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

Method ShallowCopy

Common/DataModel/vtkCellArray.cxx:778–802  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

776
777//------------------------------------------------------------------------------
778void 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//------------------------------------------------------------------------------
805void vtkCellArray::Append(vtkCellArray* src, vtkIdType pointOffset)

Callers 1

ProcessMethod · 0.45

Calls 1

ModifiedMethod · 0.45

Tested by

no test coverage detected