<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>

<meta http-equiv="content-type" content="text/html; charset=ISO-8859-15">
</head>
<body bgcolor="#ffffff" text="#000000">
<font size="-1"><font face="Helvetica, Arial, sans-serif">Hello world.<br>
<br>
After I have finally found a way of making the vtkContourFilter work
I'm now facing how to color them.<br>
I want to color them according to the value they are having.<br>
Example: The cutting plane displays the "right" color for the scalar
data, but the iso-surfaces (contours) are colored identically.<br>
Have a look at the screenshot in the attachment.<br>
<br>
So, what do I have to do, to set up the right coloring?<br>
<br>
Here is the code I am using to create the contours:<br>
<font face="Courier New, Courier, monospace"><br>
vtkContourFilter *scalarIsoSurface = vtkContourFilter::New();<br>
scalarIsoSurface-&gt;SetInput(sGridPointData-&gt;GetOutput());<br>
scalarIsoSurface-&gt;SetValue(0,3);<br>
scalarIsoSurface-&gt;SetValue(1,5);<br>
scalarIsoSurface-&gt;Update();<br>
<br>
vtkPolyDataNormals *sGridPolyDataNormal = vtkPolyDataNormals::New();<br>
sGridPolyDataNormal-&gt;SetInput(scalarIsoSurface-&gt;GetOutput());<br>
sGridPolyDataNormal-&gt;Update();<br>
<br>
vtkPolyDataMapper *scalarIsoSurfaceMapper = vtkPolyDataMapper::New();<br>
scalarIsoSurfaceMapper-&gt;SetInput(sGridPolyDataNormal-&gt;GetOutput());<br>
scalarIsoSurfaceMapper-&gt;Update();<br>
    <br>
vtkActor *scalarIsoSurfaceActor = vtkActor::New();<br>
scalarIsoSurfaceActor-&gt;SetMapper(scalarIsoSurfaceMapper);</font><br>
<br>
Have a nice day.<br>
Sebastian<br>
<br>
</font></font>
</body>
</html>