Hi David,<br><br>What about making a generic way to access these kinds of arrays, given a length argument, using ctypes or numpy?<br><br>Something like:<br><br>length = info.Length(key)<br>myarray = vtk.array_from_pointer(info.Get(key), length)<br>

<br><br>Pat<br><br><br><div class="gmail_quote">On Wed, Mar 28, 2012 at 4:08 PM, David Gobbi <span dir="ltr"><<a href="mailto:david.gobbi@gmail.com">david.gobbi@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Hmm, I just noticed something in my own code.  The following method<br>
isn't wrapped, because it returns a bare pointer.  As a result the<br>
WHOLE_EXTENT key can't be used with Get:<br>
<br>
int * vtkInformation::Get(vtkInformationIntegerVectorKey *);<br>
<br>
But I think that I can add a wrapper hint to get it working... the<br>
wrappers can internally query the Length() method to figure out what<br>
number of values to return.<br>
<br>
 - David<br>
<br>
<br>
On Fri, Mar 23, 2012 at 10:44 AM, Philippe Pebay<br>
<div class="im HOEnZb"><<a href="mailto:philippe.pebay@kitware.com">philippe.pebay@kitware.com</a>> wrote:<br>
> Thanks Bill.<br>
><br>
> Philippe<br>
><br>
><br>
> On Fri, Mar 23, 2012 at 4:49 PM, Bill Lorensen <<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>><br>
> wrote:<br>
>><br>
>> This page has a suggested replacement.<br>
>> <a href="http://vtk.org/Wiki/VTK/VTK6/Migration/WikiExamples#Improve" target="_blank">http://vtk.org/Wiki/VTK/VTK6/Migration/WikiExamples#Improve</a><br>
>><br>
>> On Fri, Mar 23, 2012 at 8:23 AM, Philippe Pebay<br>
>> <<a href="mailto:philippe.pebay@kitware.com">philippe.pebay@kitware.com</a>> wrote:<br>
>> > Hello all<br>
>> ><br>
>> > GetOutput().GetWholeExtent() does not work any longer in VTK 6. I have q<br>
>> > boatload of vtkpython scripts using this! Does anyone know what the<br>
>> > quick<br>
>> > fix is?<br>
>> ><br>
>> > Thanks<br>
>> > Philippe<br>
</div><div class="HOEnZb"><div class="h5">_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br>
<br>
</div></div></blockquote></div><br>