<div class="gmail_quote">On Thu, Jan 27, 2011 at 4:55 AM, Luca Cinquepalmi <span dir="ltr"><<a href="mailto:cinquepalmi@planetek.it">cinquepalmi@planetek.it</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div text="#000000" bgcolor="#ffffff">
Hi,<br>
I'm trying to execute the example presented at<br>
<br>
<small><a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/InfoVis/DelimitedTextReader" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/InfoVis/DelimitedTextReader</a></small><br>
<br>
which read a csv file (x y z n) and visualize it. When i visualize
my file the image is all black, while it should have the color/value
expressed in "n" value. In my case n is a GrayScale value. How can i
modify it? I think i should modify the command<br>
<br>
<pre>actor<span>-</span><span>></span>GetProperty<span>(</span><span>)</span><span>-</span><span>></span>SetColor<span>(</span><span>1</span>,<span>0</span>,<span>0</span><span>)</span><span>;</span>
</pre>
bu I don't know how. Can anybody help me? Thanks a lot.<br>
<br>
Luca</div></blockquote><div><br></div><div>I just added an example file to the top of the example:</div><div> </div><div>0.0 0.0 0.0 1.0 2.0 3.0</div><div>1.0 0.0 0.0 4.0 5.0 6.1</div><div>0.0 1.0 0.0 7.2 8.3 9.4</div>
<div><br></div><div>When I run the example with this file, I see 3 red dots, and as I rotate them, the change from red to black (because of the normal which causes VTK to change the light reflected off of them).</div><div>
<br></div><div>David </div></div><br>