<DIV>
<DIV>HI Charles,</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks for the advice, but I'm not sure how to go about creating these "extraction" modules, I tried by creating two separate readers that both read from the same file, but this did not work either, I really think it should, but I&nbsp;am very much a begginer in VTK so I don't understand how everything works yet.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks,</DIV>
<DIV>&nbsp;</DIV>
<DIV>Sonam<BR><BR><B><I>Charles Boivin &lt;Charles.Boivin@rwdiwest.com&gt;</I></B> wrote:</DIV>
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">Hi Sonam,<BR><BR>I am no VTK expert, but here is where I think the source of your<BR>problem is:<BR><BR>Look at:<BR><BR>vtkContourFilter cf<BR>cf SetInput [$octreeSource GetOutput]<BR>cf SetValue 0 0<BR><BR>and:<BR><BR>vtkContourFilter cf2<BR>cf2 SetInput [$octreeSource GetOutput]<BR>cf2 SetValue 0 0<BR><BR><BR>You set the input of both cf and cf2 to the output of octreeSource.<BR>That output is a pointer. By calling octreeSource-&gt;SetScalarsName(), you<BR>change the values that are referenced by that pointer, but the pointer<BR>itself does *not* change. Are both contours of the second scalar? If<BR>that is the case, it confirms what I was thinking... Basically, the<BR>contour filter does not store which scalar is active when you make a<BR>call to its SetInput. It simply copies the pointer, and will do the<BR>actual contouring on the active scalar at the moment it is
 computed<BR>(which, presumably, will be at the same time for both contour filters).<BR><BR>The way I've handled this (on both structured and unstructured grids),<BR>is by writing a filter that extracts a single array out of multiple<BR>ones. By using, say two, "extraction" modules, each of their GetOutput()<BR>*is* different, and I can then display separate values. Now, this might<BR>not be the most efficient way to do things, but this module actually<BR>does a few more things for me, so that's the way I have done things.<BR><BR>Hope this helps,<BR><BR>Charles Boivin<BR><BR></BLOCKQUOTE></DIV><p><br><hr size=1>
Find local movie times and trailers on <a href="http://au.rd.yahoo.com/mail/tagline/*http://au.movies.yahoo.com" target=_blank><b>Yahoo! Movies.</b></a><br>