I've tryed just like it says on the webpage you sent.<br>What should be the proper directory? I've installed the VTK and unziped the files from the examples into VTK's folder.<br><br>Thanks,<br><br>Sergio<br><br>
<div class="gmail_quote">2009/11/19 Bill Lorensen <span dir="ltr"><<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Looks like you are missing the data that goes with the examples. Or<br>
you are not running from the proper directory.<br>
<br>
Did you try running the examples following the steps at:<br>
<a href="http://scv.bu.edu/documentation/tutorials/VTK/#START" target="_blank">http://scv.bu.edu/documentation/tutorials/VTK/#START</a><br>
<br>
Bill<br>
<br>
2009/11/19 Sérgio Augusto <<a href="mailto:sergioaugustoav@gmail.com">sergioaugustoav@gmail.com</a>>:<br>
<div><div></div><div class="h5">> Hi everyone,<br>
><br>
> I'm trying to execute some example files to learn about vtk but when I try<br>
> to execute one of these examples I get this error:<br>
><br>
>> ERROR: In C:\Dashboards\Releases\rc-VTK-5-4-2\VTK\IO\vtkDataReader.cxx,<br>
>> line 462<br>
>> vtkStructuredGridReader (0B3A0940): Unable to open file: Data/subset.vtk<br>
><br>
> The code of the example is this:<br>
><br>
>> package require vtk<br>
>> package require vtkinteraction<br>
>><br>
>> vtkLookupTable lut<br>
>> # lut SetNumberOfColors 8<br>
>> lut SetNumberOfColors 16<br>
>> # lut SetNumberOfColors 32<br>
>> # lut SetNumberOfColors 64<br>
>> # lut SetNumberOfColors 128<br>
>> # lut SetNumberOfColors 256<br>
>> lut SetHueRange 0.0 0.667<br>
>> lut Build<br>
>><br>
>> vtkStructuredGridReader reader<br>
>> reader SetFileName "Data/subset.vtk"<br>
>> reader Update<br>
>><br>
>> vtkDataSetMapper mapper<br>
>> mapper SetInputConnection [reader GetOutputPort]<br>
>> mapper SetLookupTable lut<br>
>> eval mapper SetScalarRange [[reader GetOutput] GetScalarRange]<br>
>><br>
>> vtkActor actor<br>
>> actor SetMapper mapper<br>
>><br>
>> vtkRenderer ren1<br>
>> vtkRenderWindow renWin<br>
>> renWin AddRenderer ren1<br>
>> vtkRenderWindowInteractor iren<br>
>> iren SetRenderWindow renWin<br>
>><br>
>> ren1 AddActor actor<br>
>> ren1 SetBackground 0.5 0.5 0.5<br>
>> renWin SetSize 500 500<br>
>><br>
>> iren AddObserver UserEvent {wm deiconify .vtkInteract}<br>
>> renWin Render<br>
>><br>
>> wm withdraw .<br>
><br>
> Does anyone knows what is it?<br>
> I'm using vtk 5.4.2 downloaded from<br>
> <a href="http://www.vtk.org/VTK/resources/software.html" target="_blank">http://www.vtk.org/VTK/resources/software.html</a> and the examples are from<br>
> <a href="http://scv.bu.edu/documentation/tutorials/VTK/#INTRO" target="_blank">http://scv.bu.edu/documentation/tutorials/VTK/#INTRO</a><br>
><br>
> Thanks,<br>
><br>
> Sergio<br>
><br>
</div></div>> _______________________________________________<br>
> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Please keep messages on-topic and check the VTK FAQ at:<br>
> <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
><br>
><br>
</blockquote></div><br>