<P>Hi,</P>
<P>I'm newbie to vtk.</P>
<P>I'm having assignment to read multiple frame files of raw files.</P>
<P>And I'm using vtkStructuredPoints instead of vtkVolume16Reader, as it caused me a lot of trouble when using vtkVolume16Reader in mfc. Anybody had ever used vtkStructuredPoints only to read multiple frame files? If yes, How to append the data from next file to the previous structuredpoints that had stored the data from the first file?Because I only can get data from one file, it seems the new data overwrite the prev data.</P>
<P>I include part of the function that handle that, could somebody find what cause the the prob?I really need this urgently, I hope somebody can help me. The function below I repeat it for number of read files times. "Number" is for indicating which slice I read.</P>
<P><FONT color=darkblue> fread(Image,1,datainfo.m_XDim*datainfo.m_YDim,fin);<BR> fclose(fin);<BR> <BR> vtkScalars *scalars=(*StructuredPoints)->GetPointData()->GetScalars();<BR> scalars->SetDataType(VTK_UNSIGNED_CHAR);</FONT></P>
<P><FONT color=darkblue> int i,j,k;</FONT></P>
<P><FONT color=darkblue> for(k=Number-1;k<Number;k++)<BR> for(j=0;j<datainfo.m_YDim;j++)<BR> for(i=0;i<datainfo.m_XDim;i++)<BR> {<BR> scalars->SetScalar(k*(datainfo.m_YDim*datainfo.m_XDim)+j*(datainfo.m_XDim)+i,Image[k*(datainfo.m_YDim*datainfo.m_XDim)+j*(datainfo.m_XDim)+i]);<BR> }</FONT></P>
<P>Thanks a lot,</P>
<P>Cheby</P><p><br><hr size=1><b>Do You Yahoo!?</b><br>
<a href="http://personal.mail.yahoo.com/?.refer=mailiyfoot">Yahoo! Mail Personal Address</a> -
Get email at your own domain with Yahoo! Mail.