a related question: Re: [vtkusers] VTK <--> NumPy <--> VTK Integration

bryan cole bryan.cole at teraview.co.uk
Tue Feb 4 06:30:52 EST 2003


Thanks for your comments Prabhu. My problem is solved:

It's necessary to call vtkDataArray.SetNumberOfComponents() and
vtkDataArray.SetNumberOfTuples() **after** vtkDataArray.SetVoidArray()

I think this is a highly non-obvious gottcha (with nothing indicated in
the docs that the ordering is important), so I'm CC-ing this to the
user-list in case anyone else gets stuck no this problems...

Cheers,
Bryan

-- 
Bryan Cole
Teraview Ltd., 302-304 Cambridge Science Park, Milton Road, Cambridge CB4 0WG, United Kingdom.
tel: +44 (1223) 435380 / 435386 (direct-dial) fax: +44 (1223) 435382




More information about the vtkusers mailing list