MCPcopy Create free account
hub / github.com/Kitware/ParaView / BuildVTKDataStructures

Function BuildVTKDataStructures

Examples/Catalyst/CFullExample2/FEAdaptor.cxx:90–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88}
89
90void BuildVTKDataStructures(vtkCPInputDataDescription* idd, unsigned int numberOfPoints,
91 double* points, double* velocity, unsigned int numberOfCells, unsigned int* cells,
92 float* pressure)
93{
94 if (VTKGrid == nullptr)
95 {
96 // The grid structure isn't changing so we only build it
97 // the first time it's needed. If we needed the memory
98 // we could delete it and rebuild as necessary.
99 VTKGrid = vtkSmartPointer<vtkUnstructuredGrid>::New();
100 BuildVTKGrid(numberOfPoints, points, numberOfCells, cells);
101 }
102 UpdateVTKAttributes(idd, numberOfPoints, velocity, numberOfCells, pressure);
103}
104}
105
106void CatalystCoProcess(unsigned int numberOfPoints, double* pointsData, unsigned int numberOfCells,

Callers 1

CatalystCoProcessFunction · 0.70

Calls 3

BuildVTKGridFunction · 0.70
UpdateVTKAttributesFunction · 0.70
NewFunction · 0.50

Tested by

no test coverage detected