<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hello,<div><br></div><div>(Please reply to the whole list so everyone can contribute and learn together.)</div><div><br></div><div>So, I think you need to clarify what you mean by a "continuous field".</div><div><br></div><div>Are these polydata points already sampled on a regular grid?</div><div><br></div><div>-Eric</div><div><br></div><div><br><div><div>On Mar 5, 2010, at 1:53 AM, Joker Lee wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">I think a picture will describe my thought clearly. (in attachment)<br><br>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?<br>
<br><br><div class="gmail_quote">On Fri, Mar 5, 2010 at 12:48 AM, Eric E. Monson <span dir="ltr"><<a href="mailto:emonson@cs.duke.edu">emonson@cs.duke.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); margin-top: 0pt; margin-right: 0pt; margin-bottom: 0pt; margin-left: 0.8ex; padding-left: 1ex; position: static; z-index: auto; ">
Hello,<br>
<br>
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:<br>
<br>
<a href="http://www.vtk.org/doc/nightly/html/classvtkGaussianSplatter.html" target="_blank">http://www.vtk.org/doc/nightly/html/classvtkGaussianSplatter.html</a><br>
<a href="http://www.vtk.org/doc/nightly/html/classvtkShepardMethod.html" target="_blank">http://www.vtk.org/doc/nightly/html/classvtkShepardMethod.html</a><br>
<br>
The other method is to directly resample your original data onto a grid with:<br>
<br>
<a href="http://www.vtk.org/doc/nightly/html/classvtkProbeFilter.html" target="_blank">http://www.vtk.org/doc/nightly/html/classvtkProbeFilter.html</a><br>
<br>
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.<br>
<br>
-Eric<br>
<br>
------------------------------------------------------<br>
Eric E Monson<br>
Duke Visualization Technology Group<br>
<div><div></div><div class="h5"><br>
<br>
On Mar 4, 2010, at 7:04 AM, Joker Lee wrote:<br>
<br>
> Hi there.<br>
> I am new to vtk.<br>
> 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?<br>
><br>
> Thanks in advance.<br>
</div></div>> _______________________________________________<br>
> Powered by <a href="http://www.kitware.com/" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br>
</blockquote></div><br><br></blockquote></div><img id="3c8dd40e-5166-45a8-9bf2-d64e45a2e099" height="363" width="538" apple-width="yes" apple-height="yes" src="cid:9D4B71B3-5B29-4DBC-ACF9-18623E3A2246@nc.rr.com"></div></body></html>