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

Method GetSerializedCellFaces

Common/DataModel/vtkCellIterator.h:281–298  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

279
280//------------------------------------------------------------------------------
281inline vtkIdList* vtkCellIterator::GetSerializedCellFaces()
282{
283 if (!this->CheckCache(FacesFlag))
284 {
285 this->FetchFaces();
286 this->SetCache(FacesFlag);
287 }
288 // Export Legacy Format
289 vtkNew<vtkIdTypeArray> tmp;
290 this->Faces->ExportLegacyFormat(tmp);
291 this->LegacyFacesContainer->Initialize();
292 this->LegacyFacesContainer->InsertNextId(this->Faces->GetNumberOfCells());
293 for (vtkIdType idx = 0; idx < tmp->GetNumberOfValues(); ++idx)
294 {
295 this->LegacyFacesContainer->InsertNextId(tmp->GetValue(idx));
296 }
297 return this->LegacyFacesContainer;
298}
299
300//------------------------------------------------------------------------------
301inline vtkIdType vtkCellIterator::GetNumberOfPoints()

Callers 3

WriteCellsAndFacesMethod · 0.80
TestMappedGridDeepCopyFunction · 0.80

Calls 8

SetCacheMethod · 0.80
ExportLegacyFormatMethod · 0.80
InsertNextIdMethod · 0.80
FetchFacesMethod · 0.45
InitializeMethod · 0.45
GetNumberOfCellsMethod · 0.45
GetNumberOfValuesMethod · 0.45
GetValueMethod · 0.45

Tested by 2

TestMappedGridDeepCopyFunction · 0.64