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

Method ConvertTo32BitStorage

Common/DataModel/vtkCellArray.cxx:1181–1198  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1179
1180//------------------------------------------------------------------------------
1181bool vtkCellArray::ConvertTo32BitStorage()
1182{
1183 if (this->IsStorage32Bit())
1184 {
1185 return true;
1186 }
1187 vtkNew<AOSArray32> offsets;
1188 vtkNew<AOSArray32> conn;
1189 bool result;
1190 this->Dispatch(ExtractAndInitialize{}, offsets.Get(), conn.Get(), result);
1191 if (!result)
1192 {
1193 return false;
1194 }
1195
1196 this->SetData(offsets, conn);
1197 return true;
1198}
1199
1200//------------------------------------------------------------------------------
1201bool vtkCellArray::ConvertTo64BitStorage()

Calls 3

SetDataMethod · 0.95
DispatchMethod · 0.45
GetMethod · 0.45