<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" 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">
<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%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Sebastien Jourdain <sebastien.jourdain@kitware.com><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>
<meta content="text/html; charset=utf-8">
<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="x_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="LPlnk338323" class="OWAAutoLink" previewremoved="true">thomas.fastl@kcl.ac.uk</a>> wrote:<br>
</div>
<blockquote class="x_gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div dir="ltr">
<div id="x_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="x_m_-4765869371335343546Signature">
<div id="x_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_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" originalsrc="http://www.kitware.com" shash="bJLCTTWUnPBJ3GqZ6U+pLkXRrca5Qo0sxtiBGdCk9i/Klr0uZjMPoYl7+SyL6BumLWmQcZ4w8cDwI/tpF9daXHD1SkoLclWKxzrHfHl7obFC8QCXQqkvlcOC73ojrt/v8K87I117Dinjw0ctSqXx32oofMqcL0YpPUMCRxFAggI=" rel="noreferrer" target="_blank" id="LPlnk614420" class="OWAAutoLink" previewremoved="true">
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" originalsrc="https://discourse.paraview.org/" shash="HQ8IKNT0hYvxB0GbF31/edEC9yomsSZNPyQV4pMO8JibSLzS0KXssLVdopnEbybdFqSVV7lsBogtqh+i+9ULKta7dXTVIsLfbjusrDIqJyqX6aKN04atnT79uHUG9Ysn67tDVXv8vABHPMuQ91VEXwf3OZwC6adeah4VaCiRZlA=" rel="noreferrer" target="_blank" id="LPlnk571029" class="OWAAutoLink" previewremoved="true">
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" originalsrc="http://www.kitware.com/opensource/opensource.html" shash="kkwNlvwW7w++Xo0sWgnVHA1S5BcX7gUJuPErg6mMVyvNanpd+b06pbogmMzR1j6wxDFLoqCxsc9juZqtFNYHqr2BvgTwRdHz91ed0cu1mokdgDupzPnzv4C5jKdBkcPL4FKDbv1TvskTidbhuNuBQEl4AuA5LABQeMv+sf65YHk=" rel="noreferrer" target="_blank" id="LPlnk813288" class="OWAAutoLink" previewremoved="true">
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" originalsrc="http://paraview.org/Wiki/ParaView" shash="r928GadfEOePy/VfbaOrH+k4OqxerilzvcDBlaHgXSgbN6vJcMkcNxX0Vb2BOEXoXE0w58WT3nGOTIaIYw9DOcorw0D9fxF9xsThgJXNHQfbm5cT4a7/cCU6Vhxxbs/p9h5or8+0QJhvKqV/fBkcMS5k8DfcTO65RImjQ98LVAU=" rel="noreferrer" target="_blank" id="LPlnk834291" class="OWAAutoLink" previewremoved="true">
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" originalsrc="http://markmail.org/search/?q=ParaView" shash="JW7Vh3sF6Bgbad0QQUNCIK+qp34uuJTy+9mtNjyKmziwcb4W8QPpyi+EGTon1bRQZOjKWa5cE9YBy54e0BVYwOeNp6CeBU5yiH53H07jOGuOySRqvbPEM7EB2XgB+ka4OVCxX6nT1EjbtEhlYg1zBMZTAqGDu+S7OS9RyCDZ5lA=" rel="noreferrer" target="_blank" id="LPlnk920115" class="OWAAutoLink" previewremoved="true">
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" originalsrc="https://public.kitware.com/mailman/listinfo/paraview" shash="ASpFUurrXcTMlGfEkjrHct7mxsoY97GzNg0CniXInO6OnwqTm1ZOV7mv9wvhK9uioWD3EY3W1/m2AGP65H2b00aGCGPmnNrVCtHWxU3CQwNCGnzFmpTl7K5B5DB0N2x5uDWGMorTC0/jWoJ4wvG6MsEvUQKW6hbMRVreF3POyT4=" rel="noreferrer" target="_blank" id="LPlnk540349" class="OWAAutoLink" previewremoved="true">https://public.kitware.com/mailman/listinfo/paraview</a><br>
</blockquote>
</div>
</div>
</div>
</div>
</body>
</html>