[vtkusers] (no subject)

carlart at free.fr carlart at free.fr
Mon Sep 29 06:06:32 EDT 2008


Hi vtk Users,
I'm a new user of vtk, and I'm desperatly searching some code sample or tutorial
about importing and extract datas from a .vtk file. Here is my code for now from
which I get an error in the vtkStreamingDemandDrivenPipeline. The purpose of the
code is to exctract Stress data from a .vtk file and plot in the window:


*****************************************************************************

  vtkUnstructuredGridReader  *vtkReader = vtkUnstructuredGridReader::New();
  vtkReader->SetFileName("C:\\Users\\Arthur\\Desktop\\test2.vtk");
  vtkReader->OpenVTKFile();
  vtkReader->Update();
  vtkPolyDataMapper *vtkMapper = vtkPolyDataMapper::New();
  vtkMapper->SetInputConnection(vtkReader->GetOutputPort(0));

   vtkActor* actor = vtkActor::New();
   actor->SetMapper( vtkMapper );
   actor->SetScale(1.5);
   actor->SetVisibility(1);

******************************************************************************

Any help, or links to pages where I can find what I do wrong will be welcomed.
Thanks

Arthur Carli



More information about the vtkusers mailing list