My request is related to a typical problem occurring in postprocessing of finite element results for plane elements such as shells for mechanical applications. Usually one would like to display sectional forces as diagrams, but plotted directly onto the 3D model, as in
The integration into paraview was surprisingly easy, I was wondering why I haven’t done that sooner…
For the fine-tuning I have a couple of questions:
Array selection: Is it possible to have a way of exclusively selecting an array (as in the dropdown in the toolbar)?
I would like to set meaningful defaults, for example the center of the dataset for Origin. If I do this in the method RequestData it will be applied whenever I hit “Apply”, which means that I can’t modify the origin.
How to set the default value of a smproperty to a value that depends on the model (e.g. the center of the bounding box)?
Are there other controls, for instance a spin box for setting the scale factor, as in the WarpByVector filter?
Here ist the script containing the plugin as well as a test dataset: diagram_filter.py (4.5 KB) shells1.vtu (510.5 KB)
Thank you for your help Matthieu. For the functionality I got everything to work. For the fine-tuning of the interface I’d probably need to better understand the basics of the API. I’ll leave it as it is for now, hoping that in the future someone will post more examples…