[vtk-developers] problem with Python wrapping of AddArray/RemoveArray

Berk Geveci berklist at nycap.rr.com
Thu Feb 6 09:39:27 EST 2003


You shouldn't use unnamed arrays with the field data anyway.
Relying on indices is very dangerous since, in theory, the
arrays can be re-ordered as a side effect of certain calls.
The only safe use of indices is to iterate over the arrays
when you want to perform some operation on all of them
(and not make any other field data calls inside the loop).

-Berk

On Thu, 2003-02-06 at 09:28, David Gobbi wrote:
> Hi Charl,
> 
> It's not wrapped because it is a protected method.
> 
>  - David
> 
> On 6 Feb 2003, Charl P. Botha wrote:
> 
> > My colleague has discovered interesting behaviour in the Python wrapping
> > of the AddArray/RemoveArray vtkFieldData (and children) method.
> >
> > Is there a reason why the RemoveArray(int i) method is NOT wrapped
> > whilst the RemoveArray(const char *name) is?  This makes the removal of
> > unnamed arrays somewhat convoluted.
> >
> > Thanks,
> > Charl
> >
> >
> 
> _______________________________________________
> vtk-developers mailing list
> vtk-developers at public.kitware.com
> http://public.kitware.com/mailman/listinfo/vtk-developers





More information about the vtk-developers mailing list