<div dir="ltr"><div dir="auto" style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">I am running the following example for coloring, which works fine. I see that in this example, after the look up table is created there is a loop to iterate through the look up table and assign the colors to vtkUnsignedCharArray, and then assign it to a vtkpolydata as color. I understand the logic, but I am not sure why we need to iterate through the lookuo table one by one and assign it to another data structure, as oppose to just assigning the look up table directly to the mapper, which could be much faster. Is there a way in this example to assign the lookup table directly to the mapper and remove theĀ <span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">vtkUnsignedCharArray?</span></div><div dir="auto" style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><br></div><div dir="auto" style="text-align:start;text-indent:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><span style="font-size:12.8px"><a href="https://www.vtk.org/Wiki/VTK/Examples/Cxx/Meshes/Color_a_mesh_by_height">https://www.vtk.org/Wiki/VTK/Examples/Cxx/Meshes/Color_a_mesh_by_height</a></span><br></div><div><br></div>Thanks<div>-sam<br class="gmail-Apple-interchange-newline"><br></div></div>