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"><<a href="mailto:sebastian.gatzka@stud.tu-darmstadt.de">sebastian.gatzka@stud.tu-darmstadt.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;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></div><div class="h5"><blockquote type="cite">
<pre>scalarIsoSurface->ComputeScalarsOn();
On Mon, Mar 15, 2010 at 4:55 AM, Sebastian Gatzka
<a href="mailto:sebastian.gatzka@stud.tu-darmstadt.de" target="_blank"><sebastian.gatzka@stud.tu-darmstadt.de></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->SetInput(sGridPointData->GetOutput());
scalarIsoSurface->SetValue(0,3);
scalarIsoSurface->SetValue(1,5);
scalarIsoSurface->Update();
vtkPolyDataNormals *sGridPolyDataNormal = vtkPolyDataNormals::New();
sGridPolyDataNormal->SetInput(scalarIsoSurface->GetOutput());
sGridPolyDataNormal->Update();
vtkPolyDataMapper *scalarIsoSurfaceMapper = vtkPolyDataMapper::New();
scalarIsoSurfaceMapper->SetInput(sGridPolyDataNormal->GetOutput());
scalarIsoSurfaceMapper->Update();
vtkActor *scalarIsoSurfaceActor = vtkActor::New();
scalarIsoSurfaceActor->SetMapper(scalarIsoSurfaceMapper);
Have a nice day.
Sebastian
_______________________________________________
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a>
Visit other Kitware open-source projects at
<a 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 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 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 href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a 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 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 href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br>