[vtkusers] can't use vtkStructuredPointsReader

Denis Barbier bouzim at gmail.com
Wed Nov 12 09:54:44 EST 2008


On 2008/11/12 Shun Wong wrote:
> Hi everyone,

Hi,

>   I am trying to use vtkStructuredPointsReader in java, and the first line
> of the code ensures the vtk file exists.
> But it doesn't work!!(if it does, originXYZ should have been [-81.987493
> -92.294492 -74.491504] )
>
>
>       System.out.println(new File("a01.vtk").exists());  //true
>       reader = new vtkStructuredPointsReader();
>       reader.SetFileName("a01.vtk");

reader.Update();

>       originXYZ = reader.GetOutput().GetOrigin();  //[0,0,0] !!!!!

Denis



More information about the vtkusers mailing list