[vtk-developers] Wrapping the new arrays

David Lonie david.lonie at kitware.com
Fri Jun 17 07:08:17 EDT 2016


On Thu, Jun 16, 2016 at 6:06 PM, David Gobbi <david.gobbi at gmail.com> wrote:

> Hi David,
>
> Was it intended to have the new VTK data arrays wrapped in Python?
> They're all wrappable except for the vtkGenericDataArray (it's a special
> case).
>
> In order to wrap vtkSOADataArrayTemplate and the templated array types,
> Python would just have to be fooled into thinking that their superclass is
> vtkDataArray, similar to what is already done for the old array classes.
> That way, Python wouldn't have to deal with the problematic
> vtkGenericDataArray template.
>
> The Python wrappers can be told to instantiate the templates over the
> usual set of data types.  This part is easy, it has already done for
> vtkArrayIteratorTemplate, vtkDenseArray, and vtkSparseArray.
>

It wasn't something we planned for right away, but we did want them wrapped
eventually. If it's easy enough, sure, feel free to go ahead and wrap them
:)

Dave
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20160617/a8002b33/attachment.html>


More information about the vtk-developers mailing list