[vtkusers] How to transform discrete points to continuous field

Eric E. Monson emonson at cs.duke.edu
Fri Mar 5 07:41:37 EST 2010


Hello,

(Please reply to the whole list so everyone can contribute and learn together.)

So, I think you need to clarify what you mean by a "continuous field".

Are these polydata points already sampled on a regular grid?

-Eric


On Mar 5, 2010, at 1:53 AM, Joker Lee wrote:

> I think a picture will describe my thought clearly. (in attachment)
> 
> There are hundreds of separate points in the picture (actually a vtkPolyData), each with a different color(scalars). I want to transform all these points into a solid object(continuous field). What should I do?
> 
> 
> On Fri, Mar 5, 2010 at 12:48 AM, Eric E. Monson <emonson at cs.duke.edu> wrote:
> 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
> 
> 
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100305/09961835/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: solid_rev.png
Type: image/png
Size: 33019 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100305/09961835/attachment.png>


More information about the vtkusers mailing list