You have to do something like that<div><br></div><div><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; border-collapse: collapse; ">scalarIsoSurfaceMapper->SetLookupTable( cuttingPlaneLUT );</span></div>
<div><font class="Apple-style-span" face="'Courier New', Courier, monospace"><span class="Apple-style-span" style="border-collapse: collapse;"><br></span></font></div><div><font class="Apple-style-span" face="'Courier New', Courier, monospace"><span class="Apple-style-span" style="border-collapse: collapse;">Therefore the mapper will color both outputs with the same color manner.</span></font></div>
<div><font class="Apple-style-span" face="'Courier New', Courier, monospace"><span class="Apple-style-span" style="border-collapse: collapse;"><br></span></font></div><div><font class="Apple-style-span" face="'Courier New', Courier, monospace"><span class="Apple-style-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"><<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">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></div><div class="h5"><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"><<a href="mailto:sebastian.gatzka@stud.tu-darmstadt.de" target="_blank">sebastian.gatzka@stud.tu-darmstadt.de</a>></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->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>
</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></div>