[Paraview] Centering data

David Doria daviddoria at gmail.com
Fri Aug 6 12:27:47 EDT 2010


On Fri, Aug 6, 2010 at 12:21 PM, Moreland, Kenneth <kmorel at sandia.gov> wrote:
> For the record, Andy’s method is attempting to find the center of mass
> (assuming uniform density).  If you just need the center of the bounds, you
> can go to the information panel, average the bounds in each dimension, and
> then do a translate transform to move that point to the origin.
>
> -Ken

Here is a programmable filter that does the trick:
http://www.paraview.org/Wiki/Python_Programmable_Filter#Center_Data

Thanks all,

David


More information about the ParaView mailing list