Cylindrical slices not accepting float
Good day!
I am busy preforming data analysis on an axial flow fan and need to take many cylindrical slices. These slices will vary from roughly 0.31 m to 0.71 m. I've just picked up the basics of programming within paraview, and generated the following script: Code:
source = GetActiveSource() My problem is that these slices all have radius 0. As soon as I take away the division of 100, they slice at the radius given. How would I accomplish what is set out here? EDIT: It seems the reason was that paraview wasn't working with floats, and instead treated everything like integers. To remedy this, I included the line: from __future__ import division at the top, which solved the problem |
All times are GMT -4. The time now is 09:21. |