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

Function AllocatePointAttributes

Filters/General/vtkCleanUnstructuredGrid.cxx:39–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37constexpr unsigned char MAX_CELL_DIM = 3;
38
39void AllocatePointAttributes(vtkPointData* inPD, vtkPointData* outPD, vtkIdType nPoints)
40{
41 for (vtkIdType iArr = 0; iArr < inPD->GetNumberOfArrays(); ++iArr)
42 {
43 auto inArr = inPD->GetAbstractArray(iArr);
44 auto outArr = outPD->GetAbstractArray(inArr->GetName());
45 if (!outArr)
46 {
47 vtkGenericWarningMacro(<< inArr->GetName() << " output array is nullptr");
48 continue;
49 }
50 outArr->SetNumberOfComponents(inArr->GetNumberOfComponents());
51 outArr->SetNumberOfTuples(nPoints);
52 }
53}
54
55unsigned char GetTopologicalDimension(vtkDataSet* ds)
56{

Callers 1

RequestDataMethod · 0.85

Calls 6

GetAbstractArrayMethod · 0.80
GetNumberOfArraysMethod · 0.45
GetNameMethod · 0.45
SetNumberOfComponentsMethod · 0.45
GetNumberOfComponentsMethod · 0.45
SetNumberOfTuplesMethod · 0.45

Tested by

no test coverage detected