<!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">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:
<blockquote
 cite="mid:b74c00f81003150538h4e59d204v55c1c039e18f55b8@mail.gmail.com"
 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">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 class="h5">
    <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>
</body>
</html>