<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2600.0" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I am just wondering if any one knows the reason for
the following error when I am trying to write a vtkAppendPolyData using command
vtkPolyDataWriter.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>ERROR: In
C:\martink\vtk40\VTK\Graphics\vtkAppendPolyData.cxx, line
607<BR>vtkAppendPolyData (0x01038AD0): Destination not big
enough<BR></FONT></DIV>
<DIV><FONT face=Arial size=2>My code is :</DIV></FONT>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>vtkPolyData *polydata[30];<BR>vtkAppendPolyData
*appendall=vtkAppendPolyData::New();</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>for(j=0;j<i;j++){<BR> polydata[j] =
vtkPolyData::New();<BR> polydata[j]=(vtkPolyData*)actor[j]->GetMapper()->GetInput();
<BR> appendall->AddInput(polydata[j]);<BR>}<BR> </FONT></DIV>
<DIV><FONT face=Arial size=2>vtkPolyDataWriter
*writer=vtkPolyDataWriter::New();</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial
size=2>writer->SetInput(appendall->GetOutput());<BR>writer->SetFileName("woman.vtk");<BR>writer->Write();<BR></FONT></DIV>
<DIV><FONT face=Arial size=2>Any help is greatly appreciated.</FONT></DIV>
<DIV><FONT face=Arial size=2> </FONT><FONT face=Arial size=2>Parvaneh
Saeedi<BR>-----------------------------------------------------------------<BR>Robotics
and Control Laboratory<BR>Dept. of Electrical and Computer
Engineering<BR>University of British Columbia<BR> </FONT><FONT face=Arial
size=2></FONT></DIV></BODY></HTML>