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

Method GetCellTypesArray

Common/DataModel/vtkStructuredData.cxx:366–375  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

364
365//------------------------------------------------------------------------------
366vtkSmartPointer<vtkConstantArray<int>> vtkStructuredData::GetCellTypesArray(
367 int extent[6], bool usePixelVoxelOrientation)
368{
369 auto resultUC = vtkStructuredData::GetCellTypes(extent, usePixelVoxelOrientation);
370 auto resultInt = vtkSmartPointer<vtkConstantArray<int>>::New();
371 resultInt->ConstructBackend(static_cast<int>(resultUC->GetBackend()->Value));
372 resultInt->SetNumberOfComponents(1);
373 resultInt->SetNumberOfTuples(resultUC->GetNumberOfTuples());
374 return resultInt;
375}
376
377//------------------------------------------------------------------------------
378// Get the points defining a cell. (See vtkDataSet for more info.)

Callers

nothing calls this directly

Calls 6

GetCellTypesFunction · 0.70
NewFunction · 0.50
GetBackendMethod · 0.45
SetNumberOfComponentsMethod · 0.45
SetNumberOfTuplesMethod · 0.45
GetNumberOfTuplesMethod · 0.45

Tested by

no test coverage detected