<!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->SetInput(sGridPointData->GetOutput());<br>
scalarIsoSurface->SetValue(0,3);<br>
scalarIsoSurface->SetValue(1,5);<br>
scalarIsoSurface->Update();<br>
<br>
vtkPolyDataNormals *sGridPolyDataNormal = vtkPolyDataNormals::New();<br>
sGridPolyDataNormal->SetInput(scalarIsoSurface->GetOutput());<br>
sGridPolyDataNormal->Update();<br>
<br>
vtkPolyDataMapper *scalarIsoSurfaceMapper = vtkPolyDataMapper::New();<br>
scalarIsoSurfaceMapper->SetInput(sGridPolyDataNormal->GetOutput());<br>
scalarIsoSurfaceMapper->Update();<br>
<br>
vtkActor *scalarIsoSurfaceActor = vtkActor::New();<br>
scalarIsoSurfaceActor->SetMapper(scalarIsoSurfaceMapper);</font><br>
<br>
Have a nice day.<br>
Sebastian<br>
<br>
</font></font>
</body>
</html>