<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; 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">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 id="OLK_SRC_BODY_SECTION">
<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">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">paraview@paraview.org</a>" <<a href="mailto:paraview@paraview.org">paraview@paraview.org</a>>, Kenneth Moreland <<a href="mailto:kmorel@sandia.gov">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">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">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>
<div id="DDB4FAA8-2DD7-40BB-A1B8-4E2AA1F9FDF2">
<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; 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" target="_blank" style="color:#4453ea">www.avast.com</a></td>
</tr>
</tbody>
</table>
<a href="#DDB4FAA8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1"></a></div>
</div>
</div>
</span>
</body>
</html>