<div dir="ltr"><div><div><div>Kenneth, wonderful - that's done the trick (see attached).<br>A quick and simple solution! <br><br>Whats the difference between an image file (and the unstructured data file that I have created)?<br></div></div></div><br>Thanks very much, Giles.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Feb 7, 2016 at 6:31 AM, Moreland, Kenneth <span dir="ltr"><<a href="mailto:kmorel@sandia.gov" target="_blank">kmorel@sandia.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word;color:rgb(0,0,0);font-size:14px;font-family:Calibri,sans-serif">
<div>
<div>
<div>Giles,</div>
</div>
</div>
<div><br>
</div>
<div>I think I've figured out your problem. The scalars data you sent me is an unstructured grid with "voxel"-type cells. One of my least favorite features of VTK is that there is a distinction between a box in an unstructured grid (called a hexahedra) and
a box in a data set with structured grid (called a voxel). These two cells are essentially the same shape, but the order of the points is different.</div>
<div><br>
</div>
<div>The reason why I dislike this feature is that it is technically allowable to put voxel cells in an unstructured grid. However, this fouls up lots of filters that don't check for this corner case. Apparently the probe filter, which is the underlying filter
for resample with dataset, is one of the filters broken for voxels. (Unless there is something else about this dataset that I am missing.) I submitted a bug about this (<a href="http://www.paraview.org/Bug/view.php?id=15982" target="_blank">http://www.paraview.org/Bug/view.php?id=15982</a>).</div>
<div><br>
</div>
<div>The most expedient way around this problem is to run the tetrahedralize filter on the scalars. That will convert the voxels to tetrahedra correctly, and the probe filter has no problem on that data type. The interpolation will be slightly different but
close. Overall a better solution is to save your data as image data rather than convert it to an unstructured grid. The file will be smaller and the interpolation should happen correctly.</div>
<div><br>
</div>
<div>-Ken</div>
<div><br>
</div>
<span>
<div style="font-family:Calibri;font-size:11pt;text-align:left;color:black;BORDER-BOTTOM:medium none;BORDER-LEFT:medium none;PADDING-BOTTOM:0in;PADDING-LEFT:0in;PADDING-RIGHT:0in;BORDER-TOP:#b5c4df 1pt solid;BORDER-RIGHT:medium none;PADDING-TOP:3pt">
<span style="font-weight:bold">From: </span>Richardson CFD <<a href="mailto:garcfd@gmail.com" target="_blank">garcfd@gmail.com</a>><br>
<span style="font-weight:bold">Date: </span>Saturday, February 6, 2016 at 5:54 AM<br>
<span style="font-weight:bold">To: </span>"<a href="mailto:paraview@paraview.org" target="_blank">paraview@paraview.org</a>" <<a href="mailto:paraview@paraview.org" target="_blank">paraview@paraview.org</a>>, Kenneth Moreland <<a href="mailto:kmorel@sandia.gov" target="_blank">kmorel@sandia.gov</a>><br>
<span style="font-weight:bold">Subject: </span>[EXTERNAL] mapping scalars onto surface geometry<br>
</div>
<div><br>
</div>
<div>
<div>
<div dir="ltr">Kenneth,<br>
<br>
I have made two files here available for download (sphere.stl and scalars.vtk).<br>
<div><br>
<a href="https://drive.google.com/file/d/0B4bNbYR3XwvQVlBZNlVBX0RXSkU/view?usp=sharing" target="_blank">https://drive.google.com/file/d/0B4bNbYR3XwvQVlBZNlVBX0RXSkU/view?usp=sharing</a><br>
<br>
<a href="https://drive.google.com/file/d/0B4bNbYR3XwvQTkJxRDhLb0MxZGc/view?usp=sharing" target="_blank">https://drive.google.com/file/d/0B4bNbYR3XwvQTkJxRDhLb0MxZGc/view?usp=sharing</a><br>
<br>
</div>
<div>I hope you can give these a try using "Resample with Dataset" to see what the problem is.<br>
<br>
Regards Giles.<br>
</div>
</div><span class="">
<div>
<table style="border-top:1px solid #aaabb6;margin-top:30px">
<tbody>
<tr>
<td style="width:105px;padding-top:15px"><a href="https://www.avast.com/sig-email" target="_blank"><img src="https://ipmcdn.avast.com/images/logo-avast-v1.png" style="width:90px;min-height:33px"></a></td>
<td style="width:470px;padding-top:20px;color:#41424e;font-size:13px;font-family:Arial,Helvetica,sans-serif;line-height:18px">
This email has been sent from a virus-free computer protected by Avast. <br>
<a href="https://www.avast.com/sig-email" style="color:#4453ea" target="_blank">www.avast.com</a></td>
</tr>
</tbody>
</table>
<a href="#760742403_DDB4FAA8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1"></a></div>
</span></div>
</div>
</span>
</div>
</blockquote></div><br></div>