<div dir="ltr">Take a look at this example:<div><a href="http://vtk.org/Wiki/VTK/Examples/Cxx/PolyData/DistancePolyDataFilter">http://vtk.org/Wiki/VTK/Examples/Cxx/PolyData/DistancePolyDataFilter</a><br></div><div><br></div>
<div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, May 18, 2013 at 8:22 AM, Marco Nawijn <span dir="ltr">&lt;<a href="mailto:nawijn@gmail.com" target="_blank">nawijn@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Seth,<div><br></div><div>Are you aware of the vtkProbeFilter? You could use the points of one</div><div>
mesh (the input mesh) and compute the value from the other mesh </div><div>at the locations of the input mesh. See documentation string below.</div>
<div><br></div><div>Regards,</div><div><br></div><div>Marco</div><div><br></div><div><br></div><div>Source: Python doc-string for vtkProbeFilter</div><div><br></div><div><div>vtkProbeFilter is a filter that computes point attributes (e.g.,</div>

<div>scalars, vectors, etc.) at specified point positions. The filter has</div><div>two inputs: the Input and Source. The Input geometric structure is</div><div>passed through the filter. The point attributes are computed at the</div>

<div>Input point positions by interpolating into the source data. For</div><div>example, we can compute data values on a plane (plane specified as</div><div>Input) from a volume (Source). The cell data of the source data is</div>

<div>copied to the output based on in which source cell each input point</div><div>is. If an array of the same name exists both in source&#39;s point and</div><div>cell data, only the one from the point data is probed.</div>

<div><br></div><div>This filter can be used to resample data, or convert one dataset form</div><div>into another. For example, an unstructured grid (vtkUnstructuredGrid)</div><div>can be probed with a volume (three-dimensional vtkImageData), and</div>

<div>then volume rendering techniques can be used to visualize the</div><div>results. Another example: a line or curve can be used to probe data</div><div>to produce x-y plots along that line or curve.</div><div><br></div>

</div></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div class="h5">On Fri, May 17, 2013 at 11:48 PM, Seth Gilchrist <span dir="ltr">&lt;<a href="mailto:seth@mech.ubc.ca" target="_blank">seth@mech.ubc.ca</a>&gt;</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="h5"><div dir="ltr">Hello,<div>I&#39;m trying to compare data on two meshes that are close to matching, but don&#39;t quite match.</div>

<div><br></div><div>The meshes are the surface of a bone with scalar data representing physical strain observed at a given point. The bones were measured twice under different conditions, and the two extracted surfaces are similar, but not identical.</div>



<div><br></div><div>I have used ICP to align the meshes, but can&#39;t figure out a way to compare the data between the two meshes. One way would be to project the data from each mesh onto a plane image, or better to warp one mesh to the other and interpolate the data, but I can&#39;t figure that out either.</div>



<div><br></div><div>So that you can see what I&#39;m working with I&#39;ve uploaded the meshes in vtp format to</div><div><a href="https://share.cfri.ca/?u=SN7q&amp;p=9fAJ" target="_blank">https://share.cfri.ca/?u=SN7q&amp;p=9fAJ</a><br>



</div><div><br></div><div>Any ideas would be much appreciated. I want to compare the strain in the meshes on a point by point basis.</div><div><br></div><div>Thanks for your time and ideas,</div><div>

Seth</div></div>
<br></div></div>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/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" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br></div>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/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" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Unpaid intern in BillsBasement at noware dot com<br>
</div>