[vtkusers] vtkPolyDataReader and OutOfMemory errors

Gili junk at bbs.darktech.org
Fri Feb 22 01:27:22 EST 2002


On Fri, 22 Feb 2002 04:26:08 -0000, John Biddiscombe wrote:

>It sounds from this that you might be creating files by some
>non-vtkDataSetWriter derivative. If this is the case, double check you've
>got it right. Look at some other vtk files for comparison.

	That is correct: I am using my own writer. I am converting data from csv format to PolyData format as necessary. I have compared against other vtk files, but to no 
avail. Is there some sort of validation tool I can use or something? The resulting file _looks_ right, but it's 400MB so I have no sure-way of verifying this.

>One possible reason for overlarge memory allocation is inserting cells into
>a list and not estimating the size correctly or specifying an extend by
>amount. I can't comment on the current state of things, but the old array
>exten commands used to double the current size if no specific amount was
>specified. If you got to 399MB and then added one more cell it might jump to
>798. Just a thought.

	I believe my sizes are correct. When they were one too small or one too big I got an error from vtk (not OutOfMemory).

Gili




More information about the vtkusers mailing list