Kenneth, wonderful - that's done the trick (see attached). A quick and simple solution!
Whats the difference between an image file (and the unstructured data file that I have created)? Thanks very much, Giles. On Sun, Feb 7, 2016 at 6:31 AM, Moreland, Kenneth <[email protected]> wrote: > Giles, > > 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. > > 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 ( > http://www.paraview.org/Bug/view.php?id=15982). > > 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. > > -Ken > > From: Richardson CFD <[email protected]> > Date: Saturday, February 6, 2016 at 5:54 AM > To: "[email protected]" <[email protected]>, Kenneth Moreland < > [email protected]> > Subject: [EXTERNAL] mapping scalars onto surface geometry > > Kenneth, > > I have made two files here available for download (sphere.stl and > scalars.vtk). > > > https://drive.google.com/file/d/0B4bNbYR3XwvQVlBZNlVBX0RXSkU/view?usp=sharing > > > https://drive.google.com/file/d/0B4bNbYR3XwvQTkJxRDhLb0MxZGc/view?usp=sharing > > I hope you can give these a try using "Resample with Dataset" to see what > the problem is. > > Regards Giles. > <https://www.avast.com/sig-email> This email has been sent from a > virus-free computer protected by Avast. > www.avast.com <https://www.avast.com/sig-email> > <#760742403_DDB4FAA8-2DD7-40BB-A1B8-4E2AA1F9FDF2> >
_______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Search the list archives at: http://markmail.org/search/?q=ParaView Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/paraview
