<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<font size="-1"><font face="Helvetica, Arial, sans-serif">Yes - that's
it! Working!<br>
<br>
Thank you!<br>
</font></font><br>
Am 15.03.2010 14:39, schrieb Sebastien Jourdain:
<blockquote
 cite="mid:b74c00f81003150639s379cdaf1r9e32e9c6aa3061c1@mail.gmail.com"
 type="cite">I forgot to say that binding a LUT to a mapper might not
be&nbsp;enough, you have to set the Scalar range to the mapper as well.
  <div>But at least, the LUT is properly set.</div>
  <div><span class="Apple-style-span"
 style="font-family: 'Courier New',Courier,monospace; border-collapse: collapse;"><br>
  </span></div>
  <div><span class="Apple-style-span"
 style="font-family: 'Courier New',Courier,monospace; border-collapse: collapse;">scalarIsoSurfaceMapper-&gt;SetScalarRange(&nbsp;sGridPointData-&gt;GetOutput()-&gt;GetScalarRange()
);</span></div>
  <div><span class="Apple-style-span"
 style="font-family: 'Courier New',Courier,monospace; border-collapse: collapse;"><br>
  </span></div>
  <div><span class="Apple-style-span"
 style="font-family: 'Courier New',Courier,monospace; border-collapse: collapse;">Hope
I did not forget something else... ;-)</span></div>
  <div><span class="Apple-style-span"
 style="font-family: 'Courier New',Courier,monospace; border-collapse: collapse;"><br>
  </span></div>
  <div><span class="Apple-style-span"
 style="font-family: 'Courier New',Courier,monospace; border-collapse: collapse;">Seb</span></div>
  <div>
  <div><br>
  <br>
  <div class="gmail_quote">On Mon, Mar 15, 2010 at 9:06 AM, Sebastian
Gatzka <span dir="ltr">&lt;<a moz-do-not-send="true"
 href="mailto:sebastian.gatzka@stud.tu-darmstadt.de">sebastian.gatzka@stud.tu-darmstadt.de</a>&gt;</span>
wrote:<br>
  <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
    <div bgcolor="#ffffff" text="#000000">
    <font size="-1"><font face="Helvetica, Arial, sans-serif">Unfortunately
not.
All iso surfaces are still colored the same, when using the lookup
table from the cutting plane.</font></font><br>
    <br>
    <br>
Am 15.03.2010 13:58, schrieb Sebastien Jourdain:
    <div>
    <div class="h5">
    <blockquote type="cite">You have to do something like that
      <div><br>
      </div>
      <div><span
 style="font-family: 'Courier New',Courier,monospace; border-collapse: collapse;">scalarIsoSurfaceMapper-&gt;SetLookupTable(
cuttingPlaneLUT
);</span></div>
      <div><font face="'Courier New', Courier, monospace"><span
 style="border-collapse: collapse;"><br>
      </span></font></div>
      <div><font face="'Courier New', Courier, monospace"><span
 style="border-collapse: collapse;">Therefore the mapper will color
both outputs with the same color manner.</span></font></div>
      <div><font face="'Courier New', Courier, monospace"><span
 style="border-collapse: collapse;"><br>
      </span></font></div>
      <div><font face="'Courier New', Courier, monospace"><span
 style="border-collapse: collapse;">Seb<br>
      </span></font><br>
      <div class="gmail_quote">On Mon, Mar 15, 2010 at 8:44 AM,
Sebastian
Gatzka <span dir="ltr">&lt;<a moz-do-not-send="true"
 href="mailto:sebastian.gatzka@stud.tu-darmstadt.de" target="_blank">sebastian.gatzka@stud.tu-darmstadt.de</a>&gt;</span>
wrote:<br>
      <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
        <div bgcolor="#ffffff" text="#000000"> <font size="-1"><font
 face="Helvetica, Arial, sans-serif">I have a
lookuptable I use for a cutting plane, which is set up and displaying
correctly.<br>
Concerning the contour filter I did nothing with lookup tables. Just
the code below.<br>
Do I have to use one?<br>
        </font></font><br>
Am 15.03.2010 13:38, schrieb Sebastien Jourdain:
        <div>
        <div>
        <blockquote type="cite">Are you using the same lookuptable for
all
the outputs ?
Did you set the range properly to that lookuptable and mapper ?<br>
          <br>
          <div class="gmail_quote">On Mon, Mar 15, 2010 at 7:14 AM,
Sebastian
Gatzka <span dir="ltr">&lt;<a moz-do-not-send="true"
 href="mailto:sebastian.gatzka@stud.tu-darmstadt.de" target="_blank">sebastian.gatzka@stud.tu-darmstadt.de</a>&gt;</span>
wrote:<br>
          <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
            <div bgcolor="#ffffff" text="#000000"> <font size="-1"><font
 face="Helvetica, Arial, sans-serif">No, still
blue ...</font></font><br>
            <br>
Am 15.03.2010 11:41, schrieb David E DeMarle:
            <div>
            <div>
            <blockquote type="cite">
              <pre>scalarIsoSurface-&gt;ComputeScalarsOn();

On Mon, Mar 15, 2010 at 4:55 AM, Sebastian Gatzka
<a moz-do-not-send="true"
 href="mailto:sebastian.gatzka@stud.tu-darmstadt.de" target="_blank">&lt;sebastian.gatzka@stud.tu-darmstadt.de&gt;</a> wrote:
  </pre>
              <blockquote type="cite">
                <pre>Hello world.

After I have finally found a way of making the vtkContourFilter work I'm now
facing how to color them.
I want to color them according to the value they are having.
Example: The cutting plane displays the "right" color for the scalar data,
but the iso-surfaces (contours) are colored identically.
Have a look at the screenshot in the attachment.

So, what do I have to do, to set up the right coloring?

Here is the code I am using to create the contours:

vtkContourFilter *scalarIsoSurface = vtkContourFilter::New();
scalarIsoSurface-&gt;SetInput(sGridPointData-&gt;GetOutput());
scalarIsoSurface-&gt;SetValue(0,3);
scalarIsoSurface-&gt;SetValue(1,5);
scalarIsoSurface-&gt;Update();

vtkPolyDataNormals *sGridPolyDataNormal = vtkPolyDataNormals::New();
sGridPolyDataNormal-&gt;SetInput(scalarIsoSurface-&gt;GetOutput());
sGridPolyDataNormal-&gt;Update();

vtkPolyDataMapper *scalarIsoSurfaceMapper = vtkPolyDataMapper::New();
scalarIsoSurfaceMapper-&gt;SetInput(sGridPolyDataNormal-&gt;GetOutput());
scalarIsoSurfaceMapper-&gt;Update();

vtkActor *scalarIsoSurfaceActor = vtkActor::New();
scalarIsoSurfaceActor-&gt;SetMapper(scalarIsoSurfaceMapper);

Have a nice day.
Sebastian


_______________________________________________
Powered by <a moz-do-not-send="true" href="http://www.kitware.com"
 target="_blank">www.kitware.com</a>

Visit other Kitware open-source projects at
<a moz-do-not-send="true"
 href="http://www.kitware.com/opensource/opensource.html"
 target="_blank">http://www.kitware.com/opensource/opensource.html</a>

Please keep messages on-topic and check the VTK FAQ at:
<a moz-do-not-send="true" href="http://www.vtk.org/Wiki/VTK_FAQ"
 target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a>

Follow this link to subscribe/unsubscribe:
<a moz-do-not-send="true"
 href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a>


    </pre>
              </blockquote>
              <pre>  </pre>
            </blockquote>
            </div>
            </div>
            </div>
            <br>
_______________________________________________<br>
Powered by <a moz-do-not-send="true" href="http://www.kitware.com"
 target="_blank">www.kitware.com</a><br>
            <br>
Visit other Kitware open-source projects at <a moz-do-not-send="true"
 href="http://www.kitware.com/opensource/opensource.html"
 target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
            <br>
Please keep messages on-topic and check the VTK FAQ at: <a
 moz-do-not-send="true" href="http://www.vtk.org/Wiki/VTK_FAQ"
 target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
            <br>
Follow this link to subscribe/unsubscribe:<br>
            <a moz-do-not-send="true"
 href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
            <br>
          </blockquote>
          </div>
          <br>
        </blockquote>
        </div>
        </div>
        </div>
        <br>
_______________________________________________<br>
Powered by <a moz-do-not-send="true" href="http://www.kitware.com"
 target="_blank">www.kitware.com</a><br>
        <br>
Visit other Kitware open-source projects at <a moz-do-not-send="true"
 href="http://www.kitware.com/opensource/opensource.html"
 target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
        <br>
Please keep messages on-topic and check the VTK FAQ at: <a
 moz-do-not-send="true" href="http://www.vtk.org/Wiki/VTK_FAQ"
 target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
        <br>
Follow this link to subscribe/unsubscribe:<br>
        <a moz-do-not-send="true"
 href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
        <br>
      </blockquote>
      </div>
      <br>
      </div>
    </blockquote>
    </div>
    </div>
    </div>
    <br>
_______________________________________________<br>
Powered by <a moz-do-not-send="true" href="http://www.kitware.com"
 target="_blank">www.kitware.com</a><br>
    <br>
Visit other Kitware open-source projects at <a moz-do-not-send="true"
 href="http://www.kitware.com/opensource/opensource.html"
 target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
    <br>
Please keep messages on-topic and check the VTK FAQ at: <a
 moz-do-not-send="true" href="http://www.vtk.org/Wiki/VTK_FAQ"
 target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
    <br>
Follow this link to subscribe/unsubscribe:<br>
    <a moz-do-not-send="true"
 href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
    <br>
  </blockquote>
  </div>
  <br>
  </div>
  </div>
</blockquote>
</body>
</html>