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

Method GetDistinctCellTypes

Common/DataModel/vtkDataSet.cxx:459–472  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

457
458//------------------------------------------------------------------------------
459void vtkDataSet::GetDistinctCellTypes(vtkCellTypes* types)
460{
461 DistinctCellTypesWorker worker(this);
462 vtkSMPTools::For(0, this->GetNumberOfCells(), worker);
463 if (types)
464 {
465 types->Reset();
466 types->Allocate(static_cast<vtkIdType>(worker.DistinctCellTypes.size()));
467 for (const auto& distinctCellType : worker.DistinctCellTypes)
468 {
469 types->InsertNextType(distinctCellType);
470 }
471 }
472}
473
474//------------------------------------------------------------------------------
475void vtkDataSet::GetCellPoints(

Callers 15

ProcessRequestMethod · 0.45
GetElementCountsFunction · 0.45
DrawPolyDataMethod · 0.45
GetCellTypesFunction · 0.45
GetCellTypesFunction · 0.45
GetCellTypesFunction · 0.45
GetTopologicalDimensionFunction · 0.45
GenerateMethod · 0.45
TestEmptyFunction · 0.45
TestWithPointsFunction · 0.45

Calls 5

ForFunction · 0.50
GetNumberOfCellsMethod · 0.45
ResetMethod · 0.45
AllocateMethod · 0.45
sizeMethod · 0.45

Tested by 4

TestEmptyFunction · 0.36
TestWithPointsFunction · 0.36
TestWithPointsAndCellsFunction · 0.36