<div dir="ltr"><div>If vtkMapper::InterpolateScalarsBeforeMapping is Off, we send the RGBs at each vertex and GL interpolates the RGB values over the polygon. This can produce incorrect results (colors outside of the lookup table) so I don't recommend it.<br></div><div class="gmail_extra"><br>If On, we send the color lookup table for the object over and the values at each vertex instead of the colors at each vertex. GL interpolates the values over the polygon and looks up the color at each pixel from the lookup table.<br><br></div><div class="gmail_extra"></div><div class="gmail_extra">Note that you can also color by cell aligned values. See vtkMapper::SetScalarModeToUseCellData(). Here the color of all pixels within a polygon will be the same and determined by looking up the cell's value in the lookuptable.<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On May 2, 2017 3:19 AM, "Tharun" <<a target="_blank" href="mailto:tharun160190@gmail.com">tharun160190@gmail.com</a>> wrote:<br type="attribution"><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">In all the workflows I see, we assign a scalar value to each point and color<br>
of cell(colors inside cell) is interpolated(calculated) automatically by VTK<br>
using the color of cell points.<br>
<br>
May I know how is the interpolation done?<br>
<br>
Thanks in advance.<br>
<br>
<br>
<br>
--<br>
View this message in context: <a target="_blank" rel="noreferrer" href="http://vtk.1045678.n5.nabble.com/How-is-the-color-of-cell-interpolated-given-different-colors-to-each-cell-point-tp5743035.html">http://vtk.1045678.n5.nabble.c<wbr>om/How-is-the-color-of-cell-in<wbr>terpolated-given-different-col<wbr>ors-to-each-cell-point-tp57430<wbr>35.html</a><br>
Sent from the VTK - Users mailing list archive at Nabble.com.<br>
______________________________<wbr>_________________<br>
Powered by <a target="_blank" rel="noreferrer" href="http://www.kitware.com">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a target="_blank" rel="noreferrer" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensou<wbr>rce/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a target="_blank" rel="noreferrer" href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FA<wbr>Q</a><br>
<br>
Search the list archives at: <a target="_blank" rel="noreferrer" href="http://markmail.org/search/?q=vtkusers">http://markmail.org/search/?q=<wbr>vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a target="_blank" rel="noreferrer" href="http://public.kitware.com/mailman/listinfo/vtkusers">http://public.kitware.com/mail<wbr>man/listinfo/vtkusers</a><br>
</blockquote></div></div>
</div>