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