[vtkusers] How to transform discrete points to continuous field

Eric E. Monson emonson at cs.duke.edu
Thu Mar 4 11:48:55 EST 2010


Hello,

When you say "continuous field", VTK can not display truly continuous values, but maybe you mean you want your field sampled onto a regular grid? If this is the case, VTK has a couple ways that I know of to resample unstructured points (and their scalars) onto a structured grid. The first is "splatting", where you place an influence function at each of your measured points and sample those onto a regular grid:

http://www.vtk.org/doc/nightly/html/classvtkGaussianSplatter.html
http://www.vtk.org/doc/nightly/html/classvtkShepardMethod.html

The other method is to directly resample your original data onto a grid with:

http://www.vtk.org/doc/nightly/html/classvtkProbeFilter.html

On those document pages you'll find links to Tests, which may give you enough hints as to how to use these classes. If you have more specific questions once you've looked at them, feel free to send a follow-up email to the list.

-Eric

------------------------------------------------------
Eric E Monson
Duke Visualization Technology Group


On Mar 4, 2010, at 7:04 AM, Joker Lee wrote:

> Hi there.
> I am new to vtk. 
> I have a project that need to use vtk to show a 3D temperature field. The original data are tempretures of some discrete point. I use interpolation to increase the density of points, but how could I use these discrete points to create a continuous field?
> 
> Thanks in advance.
> _______________________________________________
> 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 VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> 
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers




More information about the vtkusers mailing list