[vtkusers] GetRange() not working properly with Python VTK 6.2 on ubuntu 14.04

Manjunath K E ke.manjunath at gmail.com
Mon Aug 10 07:00:23 EDT 2015


Hi ,

I have executed the following code in VTKPYTHON interpreter. (6.2 version)

=================================
>>> from vtk import *
>>> obj=vtkFloatArray()
>>> obj.SetNumberOfValues(5)
>>> obj.SetValue(0,1)
>>> obj.SetValue(1,2)
>>> obj.SetValue(2,3)
>>> obj.SetValue(3,4)
>>> obj.SetValue(4,5)
>>> obj.SetValue(5,6)
>>> obj.GetRange()
*(0.0, 0.0)*
===========================


>From the above code, it can be seen that the GetRange() function is not
working properly.
Although, the range of "obj" is (1,6), it is printing incorrectly as (0,0).

Could any1 pls help me in solving this.


 Thanks and Regards,

 Manjunath K E
 Help Ever Hurt Never
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20150810/baa15713/attachment.html>


More information about the vtkusers mailing list