Hi, I am coloring blocks by the maximum value of a variable that occurs within that given block. I am dealing with a large number of blocks, so I don't want to extract each block and color one by one.
I'm currently using the python calculator to do this, since the function "max()" returns block-by-block maximum (scalar), which is what I want. The issue is that paraview doesn't return the returned value as an array, so using the maximum values per block directly in an expression doesn't work. I'm using a pretty sad-looking syntax to get the job done. My expression is something along the lines of: Expression: ((von_mises - von_mises)+1)*max(von_mises) So, I'm creating an array of 1's for each cell and then scaling it by the maximum value in a given block. There must be a better way of doing this, right? Something like "max_by_block()" or "create_cell_array_ones()." If not, perhaps that could become a feature request. Thanks, Alan
_______________________________________________ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
