<div class="gmail_quote">On Wed, Feb 10, 2010 at 8:56 AM, Liam Kurmos <span dir="ltr"><<a href="mailto:quantum.leaf@googlemail.com">quantum.leaf@googlemail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I forgot to reference in my last post your example:<br>
<br>
<a href="http://www.cmake.org/Wiki/VTK/Examples/IterateImageData" target="_blank">http://www.cmake.org/Wiki/VTK/Examples/IterateImageData</a><br>
<br>
which is the way i do it now.<br>
<br>
I was thinking there may be a method that lets you set a 3D array as<br>
scalars that might be faster for performance critical tasks but<br>
haven't needed to do that yet.<br>
<font color="#888888"><br>
Liam<br>
</font><div><div></div><div class="h5"></div></div></blockquote></div><br><div>I think that example should be modified to use the GetScalarPointer method. It seems more "natural" to me - I never followed what happens when you SetScalarComponentFromDouble when you are not setting a double :)</div>
<div><br></div><div>Also, the documentation for SetScalarComponentFromDouble says "<span class="Apple-style-span" style="font-family: 'Lucida Grande', Verdana, Geneva, Arial, sans-serif; font-size: 12px; ">For access to data from tcl" This leads me to believe this is not the intended way to do this.</span></div>
<div><br></div><div>Also, there was an error in my last post:</div><div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">volValue = whatever you want pixel (x,y,z) to equal</span></div>
<div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;">should be</span></font></div><div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;"><span class="Apple-style-span" style="font-size: 13px; ">volValue[0] = whatever you want pixel (x,y,z) to equal</span></span></font></div>
<div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;"><br clear="all"></span></font>Thanks,<br><br>David</div>