<div dir="ltr">Make sure lighting in off and ambient is set to 1 in the vtkProp3D that renders the contour.<div><br></div><div><span style="font-family:verdana,sans-serif">assuming the output of the vtkCutter goes into a vtkPolyDataMapper which in turn is connected to a vtkActor or vtkProp3D:</span><br><div><br></div><div><font face="monospace, monospace">vtkProp3D * contourProp; </font></div><div><font face="monospace, monospace">contourProp->GetProperty()->LightingOff();</font></div><div><font face="monospace, monospace">contourProp->GetProperty()->SetAmbient(1.0);</font></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, May 12, 2016 at 5:54 AM, Cristina Oyarzun via vtkusers <span dir="ltr"><<a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div>Hello,<br><br></div>I am rendering a surface
(vtkpolydata) using a vtkcolortransferfunction to map its scalar values
to RGB colors (just red, yellow and green). That works without problem.<br><br></div>I have a different render window where I show 2D slices of a volume as I move a slider. <br><br>While
I traverse the volume I want to show in addition to the 2D slices the
cut of the surface that correspond to that 2D slices in that render
window. I use vtkcutter and a plane at the position of the current 2D
slice to do this. I see the 2D contour of the surface that correspond to
that 2D slice but the colors are not correct. I do get some colors in
some slices, but in some other slices I just get a black contour.<br><br></div>Does someone have an idea of why do I not get the same colors in the 3D surface and after the cut?<br><br></div>Thank you very much!<span class="HOEnZb"><font color="#888888"><br><br></font></span></div><span class="HOEnZb"><font color="#888888">Cristina<br></font></span></div>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" 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" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br></div>