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

Method UseFixedSize32BitStorage

Common/DataModel/vtkCellArray.cxx:1076–1090  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1074
1075//------------------------------------------------------------------------------
1076void vtkCellArray::UseFixedSize32BitStorage(vtkIdType cellSize)
1077{
1078 if (this->IsStorageFixedSize32Bit() &&
1079 this->GetOffsetsAffineArray32()->GetBackend()->Slope == cellSize)
1080 {
1081 this->Initialize();
1082 return;
1083 }
1084 this->Offsets = vtkSmartPointer<AffineArray32>::New();
1085 this->GetOffsetsAffineArray32()->ConstructBackend(cellSize, 0);
1086 this->Connectivity = vtkSmartPointer<AOSArray32>::New();
1087 this->GetOffsetsAffineArray32()->InsertNextValue(0);
1088 this->StorageType = StorageTypes::FixedSizeInt32;
1089 this->Modified();
1090}
1091
1092//------------------------------------------------------------------------------
1093void vtkCellArray::UseFixedSize64BitStorage(vtkIdType cellSize)

Callers 5

DeepCopyMethod · 0.95
CombineTopologiesMethod · 0.80
NewMethod · 0.80

Calls 5

InitializeMethod · 0.95
NewFunction · 0.50
GetBackendMethod · 0.45
InsertNextValueMethod · 0.45
ModifiedMethod · 0.45

Tested by 2

NewMethod · 0.64