<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7652.24">
<TITLE>Custom vtkImageData Reader Question</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>I am building a custom reader that outputs a vtkImageData object.&nbsp; When I try to run the reader in a test program I get the following error:<BR>
<BR>
Warning: In /Users/Shared/src/ParaView3/VTK/Filtering/vtkDataSet.cxx, line 414<BR>
vtkImageData (0xc11ce0): Point array RoboMet Voxels with 1 components, has 0 tuples but there are only -145742597 points<BR>
<BR>
The following snippet of code is from the beginning of my RequestData method:<BR>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; output-&gt;SetScalarType(VTK_TYPE_UINT8);<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; output-&gt;SetSpacing( this-&gt;DataSpacing );<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; output-&gt;SetOrigin( this-&gt;DataOrigin );<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; output-&gt;SetDimensions( x, y, z );<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; output-&gt;AllocateScalars();&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; output-&gt;SetNumberOfScalarComponents( 1 );<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; output-&gt;GetPointData()-&gt;GetScalars()-&gt;SetName(&quot;RoboMet Voxels&quot;);<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; output-&gt;GetPointData()-&gt;SetActiveScalars(&quot;RoboMet Voxels&quot;);<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; output-&gt;GetPointData()-&gt;GetScalars()-&gt;SetNumberOfTuples(x*y*z);<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; output-&gt;AllocateScalars();<BR>
<BR>
I am setting the number of tuples there and allocating, so why are there 0 tuples when the reader runs?&nbsp; Is there something obvious I am not seeing?&nbsp; Also, the data I am writing to the vtkImageData object is a stack of grayscale images that I am reading out of an HDF5 file.&nbsp; In this case, does it matter how many points it says I have, or will that sort itself out when I get the correct number of tuples?<BR>
<BR>
Thanks in advance for any help given,<BR>
<BR>
Herb</FONT>
</P>

</BODY>
</HTML>