<div dir="ltr"><div><div><div>The problem is that PV is looping through your points in a different order for the unstructured grid as you do for the image data.<br><br></div>What you can do is use the Programmable Filter to "fix" this looping mismatch. Attached is a pvsm which include a Programmable Filter to do that flip. Note that I had to manually specify the image data extents (637 and 511) in the Python indexing part so if you have a different dimensioned data set you'll have to edit that to match your specific case.<br><br></div>Best,<br></div>Andy<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 5, 2018 at 2:37 PM, Christian Adrián Álvarez Báez <span dir="ltr"><<a href="mailto:christian.alvarez813@gmail.com" target="_blank">christian.alvarez813@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="im HOEnZb"><div dir="ltr">

<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">Sorry, my bad. Here goes the right state file.</span>

<br></div></span><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 4, 2018 at 1:31 PM, Christian Adrián Álvarez Báez <span dir="ltr"><<a href="mailto:christian.alvarez813@gmail.com" target="_blank">christian.alvarez813@gmail.<wbr>com</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">Sorry, my bad. Here goes the right state file.<div><br></div><div><br></div></div><div class="m_-2340482420825428055HOEnZb"><div class="m_-2340482420825428055h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 4, 2018 at 12:48 PM, Andy Bauer <span dir="ltr"><<a href="mailto:andy.bauer@kitware.com" target="_blank">andy.bauer@kitware.com</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">It looks like you forgot several files that are needed for the state file.<br></div><div class="m_-2340482420825428055m_6169956202090924933HOEnZb"><div class="m_-2340482420825428055m_6169956202090924933h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 4, 2018 at 1:30 PM, Christian Adrián Álvarez Báez <span dir="ltr"><<a href="mailto:christian.alvarez813@gmail.com" target="_blank">christian.alvarez813@gmail.co<wbr>m</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">Sure, here they go.​<div class="gmail_chip gmail_drive_chip" style="width:396px;height:18px;max-height:18px;background-color:rgb(245,245,245);padding:5px;color:rgb(34,34,34);font-family:arial;font-style:normal;font-weight:bold;font-size:13px;border:1px solid rgb(221,221,221);line-height:1"><a href="https://drive.google.com/file/d/1p_NBUMRqxhBoNs2W0moly_Bk7B-JfqFt/view?usp=drive_web" style="display:inline-block;max-width:366px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-decoration:none;padding:1px 0;border:none" target="_blank"><img style="vertical-align:bottom;border:none" src="https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png"> <span dir="ltr" style="color:rgb(17,85,204);text-decoration:none;vertical-align:bottom">BAJACOLORMAP.inp</span></a><img style="opacity:0.55;float:right;display:none"></div>​I'm using Global Mapper to get the data, so I export the inp and dem with the same boundaries. But I'm pretty new on paraview, so I'm not pretty sure of how to see if 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">vtkImageData has any problem. </span><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Thanks for your quick response!<br></span><div><div class="m_-2340482420825428055m_6169956202090924933m_-7821425057015347763h5"><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 4, 2018 at 12:18 PM, Andy Bauer <span dir="ltr"><<a href="mailto:andy.bauer@kitware.com" target="_blank">andy.bauer@kitware.com</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>Any chance you could share the datasets and maybe a state file so that I could try to reproduce your issue?<br><br></div>I can't think of anything off the top of my head that would case this.<br></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="m_-2340482420825428055m_6169956202090924933m_-7821425057015347763m_324996432614569930h5">On Wed, Apr 4, 2018 at 1:13 PM, Christian Adrián Álvarez Báez <span dir="ltr"><<a href="mailto:christian.alvarez813@gmail.com" target="_blank">christian.alvarez813@gmail.co<wbr>m</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="m_-2340482420825428055m_6169956202090924933m_-7821425057015347763m_324996432614569930h5"><div dir="ltr">Hello, <div><br></div><div>I have an UCD (ASCII) and a DEM, I would like to color the UCD by elevation (since the UCD alone just can be color by Material ID, which has nothing to do with elevation). For this I got a DEM with the exactly same array than the UCD. I apply AppendAtributes to both and I can color now with elevation. The problem is that the elevation color is upside down. I attached a picture to make sense. </div><div><br></div><div>Thank you very much for your attention. I hope you could help me.</div><span class="m_-2340482420825428055m_6169956202090924933m_-7821425057015347763m_324996432614569930m_-885878916476249485HOEnZb"><font color="#888888"><div>Christian </div></font></span></div>
<br></div></div>______________________________<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 ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" rel="noreferrer" target="_blank">http://paraview.org/Wiki/ParaV<wbr>iew</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=ParaView" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://public.kitware.com/mailman/listinfo/paraview" rel="noreferrer" target="_blank">https://public.kitware.com/mai<wbr>lman/listinfo/paraview</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div></div></div></div></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>