<div class="gmail_quote">On Fri, Feb 26, 2010 at 3:56 AM, Sebastian Gatzka <span dir="ltr">&lt;<a href="mailto:sebastian.gatzka@stud.tu-darmstadt.de">sebastian.gatzka@stud.tu-darmstadt.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">









<div bgcolor="white" lang="DE" link="blue" vlink="purple">

<div>

<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D">Hello World.</span></p>

<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D"> </span></p>

<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D">How can I assign different field values like scalars and vectors
to a (structured) grid?</span></p>

<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D">Looks to me that only the last data set with -&gt;SetScalar() or
-&gt;SetVector() is considered.</span></p>

<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D"> </span></p>

<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D">I want to use different fields for different cuts, contours etc.</span></p>

<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D">How do I tell these actors/mappers which one of the fields
should be considered?</span></p>

<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D"> </span></p><font color="#888888">

<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D">Sebastian</span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D"><br></span></p></font></div></div></blockquote>
<div>I&#39;ve never used this, but I believe you&#39;re looking for the SetActiveScalars function:</div> output-&gt;GetCellData()-&gt;SetActiveScalars(INTERFACE_COLORING);</div><div class="gmail_quote"><br></div><div class="gmail_quote">
If you figure out the syntax and could write a short example for the wiki, that would be much appreciated!</div><div class="gmail_quote"><br clear="all">Thanks,<br><br><div>David</div></div>