[vtkusers] Re: writing several scalars in one file (py and C)...
Dominik Szczerba
domi at vision.ee.ethz.ch
Thu Apr 5 13:39:59 EDT 2007
InsertNextValue() reallocates memory if needed, probabely logarithmically. If
you are not fine with it, and know the size beforehands, just set the size of
the array at the beginning and write the buffer with [] operator instead of
appending/reallocation. Read the vtkArray documentation for details.
Dominik
On Thursday 05 April 2007 12:59, fred wrote:
> Dominik Szczerba a écrit :
> > preallocate the array and write to its buffer.
>
> Ok I guess I need some pointers/url about this issue...
>
> Thanks in advance.
--
Dominik Szczerba, PhD
Computer Vision Lab CH-8092 Zurich
http://www.vision.ee.ethz.ch/~domi
More information about the vtkusers
mailing list