<div dir="ltr">You could try sampling the unstructured grid with the polydata. But you might run into issue if the polydata points end up outside if the unstructured grid.<div>You could blow a little bit the unstructured grid by scaling it a bit...</div></div><br><div class="gmail_quote"><div dir="ltr">On Sat, Aug 4, 2018 at 10:01 AM Fastl, Thomas <<a href="mailto:thomas.fastl@kcl.ac.uk">thomas.fastl@kcl.ac.uk</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div dir="ltr">
<div id="m_269718839513224603divtagdefaultwrapper" style="font-size:10pt;color:rgb(0,0,0);font-family:Arial,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols" dir="ltr">
<div id="m_269718839513224603divtagdefaultwrapper" style="font-size:10pt;color:rgb(0,0,0);font-family:Arial,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols" dir="ltr">
Hey Sebastien,</div>
<div id="m_269718839513224603divtagdefaultwrapper" style="font-size:10pt;color:rgb(0,0,0);font-family:Arial,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols" dir="ltr">
<span style="font-size:10pt"><br>
</span></div>
<div id="m_269718839513224603divtagdefaultwrapper" style="font-size:10pt;color:rgb(0,0,0);font-family:Arial,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols" dir="ltr">
<span style="font-size:10pt">That's correct, the 'Extract Surface' filter applied to the UNSTRUCTURED_GRID (vtk file 1) results in more POINTS compared to the POINTS in the POLYDATA (vtk file 2). In addition, the POINTS in POLYDATA (vtk file 2) have some
 rounding error so that the location of 'corresponding points' doesn't match exactly.</span></div>
<div id="m_269718839513224603divtagdefaultwrapper" style="font-size:10pt;color:rgb(0,0,0);font-family:Arial,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols" dir="ltr">
<br>
</div>
<div id="m_269718839513224603divtagdefaultwrapper" style="font-size:10pt;color:rgb(0,0,0);font-family:Arial,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols" dir="ltr">
Maybe you've already suggested the right approach: Is there a way in ParaView to extract the nearest neighbor of all the POINTS in POLYDATA (vtk file 2) from the UNSTRUCTURED_GRID (vtk file 1)? I could just write a csv file of the POINTS in the POLYDATA (vtk
 file 2) if that'd makes the nearest neighbor approach in ParaView more simple? Thanks.</div>
<div id="m_269718839513224603divtagdefaultwrapper" style="font-size:10pt;color:rgb(0,0,0);font-family:Arial,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols" dir="ltr">
<br>
</div>
<div id="m_269718839513224603divtagdefaultwrapper" style="font-size:10pt;color:rgb(0,0,0);font-family:Arial,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols" dir="ltr">
Best, Thomas<br>
<div><br>
</div>
<div></div>
</div>
<hr style="display:inline-block;width:98%">
<div id="m_269718839513224603divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Sebastien Jourdain <<a href="mailto:sebastien.jourdain@kitware.com" target="_blank">sebastien.jourdain@kitware.com</a>><br>
<b>Sent:</b> Friday, August 3, 2018 9:11:54 PM<br>
<b>To:</b> Fastl, Thomas<br>
<b>Cc:</b> paraview<br>
<b>Subject:</b> Re: [Paraview] Extract Point Data | Nearest Neighbor Location</font>
<div> </div>
</div>

<div>
<div dir="ltr">So you are saying that the ExtractSurface on the Unstructured grid won't produce the same polydata since it will be more refined than your file2? If that's the case, then maybe just looking for point closer could be the solution.</div>
<br>
<div class="m_269718839513224603x_gmail_quote">
<div dir="ltr">On Fri, Aug 3, 2018 at 10:56 AM Fastl, Thomas <<a href="mailto:thomas.fastl@kcl.ac.uk" id="m_269718839513224603LPlnk842778" class="m_269718839513224603OWAAutoLink" target="_blank">thomas.fastl@kcl.ac.uk</a>> wrote:<br>
</div>
<blockquote class="m_269718839513224603x_gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div id="m_269718839513224603x_m_7262838405771565173divtagdefaultwrapper" dir="ltr" style="font-size:10pt;color:rgb(0,0,0);font-family:Arial,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
<p style="margin-top:0;margin-bottom:0">Hey Sebastien,</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">the UNSTRUCTURED_GRID (vtk-file 1) has around 10^8 POINTS, while the POYDATA (vtk-file 2) has around 10^6 POINTS, i.e., the POINTS in vtk-file 2 are a subset of the POINTS in vtk-file 1. Additionally, the POINTS in vtk-file
 2 have some rounding error so that the location of "corresponding points" doesn't matches exactly and a nearest neighbor seems necessary.</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">Best, Thomas</p>
<br>
<div style="color:rgb(0,0,0)">
<hr style="display:inline-block;width:98%">
<div id="m_269718839513224603x_m_7262838405771565173divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Sebastien Jourdain <<a href="mailto:sebastien.jourdain@kitware.com" id="m_269718839513224603LPlnk265174" class="m_269718839513224603OWAAutoLink" target="_blank">sebastien.jourdain@kitware.com</a>><br>
<b>Sent:</b> Friday, August 3, 2018 17:20<br>
<b>To:</b> Fastl, Thomas<br>
<b>Cc:</b> paraview<br>
<b>Subject:</b> Re: [Paraview] Extract Point Data | Nearest Neighbor Location</font>
<div> </div>
</div>
<div>
<div dir="ltr">If they are truly the "same" why don't you forget your file2 and generate a polydata from the file1 as a file3?</div>
<br>
<div class="m_269718839513224603x_m_7262838405771565173x_gmail_quote">
<div dir="ltr">On Fri, Aug 3, 2018 at 9:41 AM Fastl, Thomas <<a href="mailto:thomas.fastl@kcl.ac.uk" id="m_269718839513224603LPlnk875988" class="m_269718839513224603x_m_7262838405771565173OWAAutoLink m_269718839513224603OWAAutoLink" target="_blank">thomas.fastl@kcl.ac.uk</a>> wrote:<br>
</div>
<blockquote class="m_269718839513224603x_m_7262838405771565173x_gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div id="m_269718839513224603x_m_7262838405771565173x_m_-4765869371335343546divtagdefaultwrapper" dir="ltr" style="font-size:10pt;color:rgb(0,0,0);font-family:Arial,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
<p style="margin-top:0;margin-bottom:0">Dear Community,</p>
<p style="margin-top:0;margin-bottom:0"><span style="font-size:10pt"><br>
</span></p>
<p style="margin-top:0;margin-bottom:0"><span style="font-size:10pt">I've got an UNSTRUCTURED_GRID (vtk-file 1</span><span style="font-size:10pt">) with POINT_DATA and want to extract the POINT_DATA at specific POINTS</span><span style="font-size:10pt">. However,
 the POINTS are defined </span><span style="font-size:10pt">in POLYDATA (vtk-file 2) and are slightly off by some rounding error. Thus, I presume the process should look similar to:</span></p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">1) Find the nearest neighbors of all POINTS defined in vtk-file 2 in vtk-file 1</p>
<p style="margin-top:0;margin-bottom:0">2) Transfer/Store the POINT_DATA of the nearest neighbors in vtk-file 1</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">I've been searching the forum for hours, however, couldn't find a solution to that problem. I was wondering if there's a simple solution of doing this in Paraview? I'd really appreciate your help on this issue, thank
 you!</p>
<p style="margin-top:0;margin-bottom:0"><span style="font-size:10pt"></span></p>
<p style="margin-top:0;margin-bottom:0"><span style="font-size:10pt"><br>
</span></p>
<p style="margin-top:0;margin-bottom:0"><span style="font-size:10pt"></span><span style="font-size:10pt">Best, Thomas</span></p>
<div id="m_269718839513224603x_m_7262838405771565173x_m_-4765869371335343546Signature">
<div id="m_269718839513224603x_m_7262838405771565173x_m_-4765869371335343546divtagdefaultwrapper" dir="ltr" style="font-size:10pt;color:rgb(0,0,0);font-family:Arial,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
<div name="x_x_divtagdefaultwrapper" style="margin:0px">
<div>
<div>
<div>
<div style="font-family:Tahoma;font-size:13px"><br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
_______________________________________________<br>
Powered by <a href="https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.kitware.com&data=01%7C01%7Cthomas.fastl%40kcl.ac.uk%7Ce5763891c0f6453319f108d5f95d16fd%7C8370cf1416f34c16b83c724071654356%7C0&sdata=1tZnhbKqOJXcXbg0Tp2m8D2gjHP8MOb7HGdGUc0EgD8%3D&reserved=0" rel="noreferrer" id="m_269718839513224603LPlnk910996" class="m_269718839513224603x_m_7262838405771565173OWAAutoLink m_269718839513224603OWAAutoLink" target="_blank">
www.kitware.com</a><br>
<br>
ParaView discussion is moving! Please visit <a href="https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdiscourse.paraview.org%2F&data=01%7C01%7Cthomas.fastl%40kcl.ac.uk%7Ce5763891c0f6453319f108d5f95d16fd%7C8370cf1416f34c16b83c724071654356%7C0&sdata=k6yXwz%2FsmevXQOR8FGQCAscP2996kdUPrdujqiV%2Fcg0%3D&reserved=0" rel="noreferrer" id="m_269718839513224603LPlnk375460" class="m_269718839513224603x_m_7262838405771565173OWAAutoLink m_269718839513224603OWAAutoLink" target="_blank">
https://discourse.paraview.org/</a> for future posts.<br>
<br>
Visit other Kitware open-source projects at <a href="https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.kitware.com%2Fopensource%2Fopensource.html&data=01%7C01%7Cthomas.fastl%40kcl.ac.uk%7Ce5763891c0f6453319f108d5f95d16fd%7C8370cf1416f34c16b83c724071654356%7C0&sdata=k3qytN9NYE%2BVh6ZE99Kd1DUbtLIdGi3VuRqo1iQIht0%3D&reserved=0" rel="noreferrer" id="m_269718839513224603LPlnk499796" class="m_269718839513224603x_m_7262838405771565173OWAAutoLink m_269718839513224603OWAAutoLink" target="_blank">
http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fparaview.org%2FWiki%2FParaView&data=01%7C01%7Cthomas.fastl%40kcl.ac.uk%7Ce5763891c0f6453319f108d5f95d16fd%7C8370cf1416f34c16b83c724071654356%7C0&sdata=diUlLjUJJAbNWnE%2FzjxJM7uaYq9brB8MBjq0160kVWA%3D&reserved=0" rel="noreferrer" id="m_269718839513224603LPlnk613636" class="m_269718839513224603x_m_7262838405771565173OWAAutoLink m_269718839513224603OWAAutoLink" target="_blank">
http://paraview.org/Wiki/ParaView</a><br>
<br>
Search the list archives at: <a href="https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmarkmail.org%2Fsearch%2F%3Fq%3DParaView&data=01%7C01%7Cthomas.fastl%40kcl.ac.uk%7Ce5763891c0f6453319f108d5f95d16fd%7C8370cf1416f34c16b83c724071654356%7C0&sdata=E0og4nleW31GkHJ0tL8nSySbRyZAqnODikkJqYSZmS8%3D&reserved=0" rel="noreferrer" id="m_269718839513224603LPlnk258678" class="m_269718839513224603x_m_7262838405771565173OWAAutoLink m_269718839513224603OWAAutoLink" target="_blank">
http://markmail.org/search/?q=ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpublic.kitware.com%2Fmailman%2Flistinfo%2Fparaview&data=01%7C01%7Cthomas.fastl%40kcl.ac.uk%7Ce5763891c0f6453319f108d5f95d16fd%7C8370cf1416f34c16b83c724071654356%7C0&sdata=R%2BrvA3fbK9R10O%2B4wYkwK8Qmgm64hcCa%2B7kd%2FukBI9I%3D&reserved=0" rel="noreferrer" id="m_269718839513224603LPlnk443496" class="m_269718839513224603x_m_7262838405771565173OWAAutoLink m_269718839513224603OWAAutoLink" target="_blank">https://public.kitware.com/mailman/listinfo/paraview</a><br>
</blockquote>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</div>

</blockquote></div>