51 inline vtkSmartPointer<vtkDoubleArray>
58 inline vtkSmartPointer<vtkDoubleArray>
61 vtkSmartPointer<vtkDoubleArray> p_vtk =
62 vtkSmartPointer<vtkDoubleArray>::New();
64 p_vtk->SetNumberOfComponents(dim);
65 p_vtk->SetNumberOfTuples(1);
67 for (
int d = 0; d < dim; ++d)
68 p_vtk->FillComponent(d, p[d]);