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

Lindeval Lima lindeval.ufrr at gmail.com
Mon Aug 10 07:47:44 EDT 2015


The obj array has five elements and you assigned 6.

2015-08-10 7:00 GMT-04:00 Manjunath K E <ke.manjunath at gmail.com>:

> 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
>
>
> _______________________________________________
> 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 VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>
>


-- 

*Prof. Lindeval Fernandes de Lima*

*Telefones para contato*:
Celular: (095) 81215424
Coordenação EaD: (095) 3624 - 6426
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20150810/c71ffa67/attachment.html>


More information about the vtkusers mailing list