VTKFIG  0.20.20181114
Easy VTK based in situ visualization
void vtkfig::PrintArray ( vtkSmartPointer< vtkDataArray >  data,
std::ostream &  os 
)

Definition at line 29 of file vtkfigTools.cxx.

30  {
31  auto nt=data->GetNumberOfTuples();
32  auto nc=data->GetNumberOfComponents();
33  assert(nc<32);
34  for (int it=0;it<nt;it++)
35  {
36  double tuple[32];
37  data->GetTuple(it,tuple);
38  for (int ic=0;ic<nc ; ic++)
39  {
40  cout << tuple[ic] << " ";
41  }
42  cout << endl;
43  }
44 
45  }