[Paraview] accessing Bounds using python script

Eric Meloche emeloche1 at gmail.com
Fri Sep 30 15:49:46 EDT 2011


Greeting,

Newbie question here.

I've got a simply script that creates a Contour and prints out the Ranges of
my Arrays  and i'm trying to extract the Bounds:  X range, Y range and Z
range of the contour data listed in the Object Inspector just below the Data
Array names and Ranges.

See screenshot.


_________
Gradient1 = Contour2.PointData[0]
Heffective = Contour2.PointData[1]
Hvec = Contour2.PointData[2]

# Gradients and Hvec will 3 components... we can list the range of the
components using

print Gradient1.GetRange(0)
print Gradient1.GetRange(1)
print Gradient1.GetRange(2)

print Heffective.GetRange(0)

print Hvec.GetRange(0)
print Hvec.GetRange(1)
print Hvec.GetRange(2)
_____________________________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20110930/b1658862/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: screenshot.jpg
Type: image/jpeg
Size: 75364 bytes
Desc: not available
URL: <http://www.paraview.org/pipermail/paraview/attachments/20110930/b1658862/attachment-0001.jpg>


More information about the ParaView mailing list