[Paraview] Dynamic colouring of the geometry in the animation of warped eigenmodes

Cory Quammen cory.quammen at kitware.com
Mon Aug 7 09:27:28 EDT 2017


On Sun, Aug 6, 2017 at 1:30 PM, Juha Kortelainen
<juha_kortelainen at welho.net> wrote:
> Hi all,
>
> I’m using the warp filter to visualise the computed eigenmodes of a
> structure (computed using a FEM code). Animating the eigenmodes works fine
> with the WarpByVector filter using the ScalarFactor as the animation
> variable. In addition to animating the deformation of the structure, I would
> like to apply colouring of the deformation vector field on the geometry so
> that the colour would change dynamically according to the magnitude of
> deformation during the animation. This can be done with the Salome
> platform’s ParaViS modile (a modified version of ParaView), which has an
> additional ScaleVector filter to do the colouring trick. Can this dynamic
> colouring be done with standard ParaView and if so, how is it done?

Yes, with some work. Take a look at this blog post for the general
idea: https://blog.kitware.com/easy-customization-of-the-paraview-python-programmable-filter-property-panel/

Basically, you can create XML plugins based on the Programmable Filter
that feature some properties, such as a scale factor. The scale factor
property should be exposed in the animation controls. Within your
Programmable Filter script, you can perform the scaling of the vector
with that scale factor property value. There are many examples of
Python scripts for the Programmable Filter in Section 13.3 the
ParaView Guide to get you started.

HTH,
Cory

>
> _______________________________________________
> 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 ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>



-- 
Cory Quammen
Staff R&D Engineer
Kitware, Inc.


More information about the ParaView mailing list