<br><br>
<div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Fabio Meneghini</b> <span dir="ltr"><<a href="mailto:fab.meneghini@gmail.com">fab.meneghini@gmail.com</a>></span><br>
Date: 2009/1/14<br>Subject: Re: [vtkusers] How to smooth (or filter) polydata scalars?<br>To: "Kevin H. Hobbs" <<a href="mailto:hobbsk@ohiou.edu">hobbsk@ohiou.edu</a>><br><br><br>
<div>Thank you very much for your reply. I really appreciated it!</div>
<div>So, for every vertex of the polydata, I could compute the mean of the scalar values of its neighbors (possibly with some weights, depending on their distance from the current vertex, and then replace the actual scalar value of current vertex with the mean.</div>
<div>waiting for a better suggestion about wich classes do this job better, </div>
<div>Thanks again for the hint...<br></div>
<div>Fabio<br></div>
<div class="gmail_quote">2009/1/13 Kevin H. Hobbs <span dir="ltr"><<a href="mailto:hobbsk@ohiou.edu" target="_blank">hobbsk@ohiou.edu</a>></span>
<div>
<div></div>
<div class="Wj3C7c"><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div><br>On Sat, 2009-01-03 at 17:20 +0100, Fabio Meneghini wrote:<br>> Hi to all,<br>> I'd like to know if there's a way to filter (especially smoothing,<br>> highpass, lowpass, etc..) the scalar values of a polydata. That is,<br>
> not the geometry itself, but just the scalar dataset.<br><br></div>It is possible to filter the scalars associated with a polydata. There<br>may be filters that do this but I don't know them. You can always make a<br>
copy of the scalars, for each point, get all the cells it belongs to,<br>for each cell get all of the points in the cell, for each of those<br>points get the scalars, average them assign the average to the first<br>points scalar in the copy... It's messy and slower than how it would be<br>
done in a proper filter but it'd work.<br></blockquote></div></div></div><br></div><br>