<div dir="ltr"><br>1-2 Interpolation withing the cell can be done by VTK, but at least without specifying the logic, vtk has no way to know how the data changes between your arbitrary points.<br>So,I afraid You need to assign data values to every cell point (vtkPointData) yourself.<br><br>3 Then you can display data using vtkLookupTable, which would present point data as a color. cell will be colored by interpolating the colors from cell points.<br>One of the (not an exactly what you need) example I could find:<br><a href="https://lorensen.github.io/VTKExamples/site/Cxx/Graphs/ColorVerticesLookupTable/">https://lorensen.github.io/VTKExamples/site/Cxx/Graphs/ColorVerticesLookupTable/</a><br>You need one data value per node. Better example is present in VTK book. The vtk example web page may contains more suitable for you example, but for some reason I cant open them right now.<br>You may have more luck , check <a href="https://www.vtk.org/Wiki/VTK/Examples/Cxx">https://www.vtk.org/Wiki/VTK/Examples/Cxx</a><br><br>Best regards,<br> Alex<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Jul 28, 2018 at 2:26 AM, Adam Turner via vtkusers <span dir="ltr"><<a href="mailto:vtkusers@public.kitware.com" target="_blank">vtkusers@public.kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Good morning,<br>
<br>
I'm new to VTK and trying to use it to create a visualisation on a 3D model. I have my model saved as an STL file and successfully been able to import that into my Python Script and render it on screen. However, it is several steps short of where I need my visualisation to be.  Please could someone help me achieve the following?<br>
<br>
1. I need to assign colours to specific locations on the Model, which will be represent pressure data from sensors on the real object.<br>
<br>
2. I need to then interpolate between these specific locations to display a complete visualisation across the model.<br>
<br>
3. Finally I need a colour scale to help the user know what the colours represent, namely what the values at min and max are and what colour represents those values.<br>
<br>
I really hope someone is able to lend their assistance or can point me to an existing tutorial! I don't seem to be able to find one.<br>
<br>
Thank you for your time in advance,<br>
<br>
Adam<br>
<br>
______________________________<wbr>_________________<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/opensou<wbr>rce/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_FA<wbr>Q</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=<wbr>vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">https://public.kitware.com/mai<wbr>lman/listinfo/vtkusers</a><br>
</blockquote></div><br></div>