[vtkusers] Error in writing vtkPolyDataWriter

Parvaneh Saeedi parvanes at ece.ubc.ca
Mon Jun 10 15:35:55 EDT 2002


Hi,

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.


ERROR: In C:\martink\vtk40\VTK\Graphics\vtkAppendPolyData.cxx, line 607
vtkAppendPolyData (0x01038AD0): Destination not big enough

My code is :

vtkPolyData *polydata[30];
vtkAppendPolyData *appendall=vtkAppendPolyData::New();

for(j=0;j<i;j++){
 polydata[j] = vtkPolyData::New();
 polydata[j]=(vtkPolyData*)actor[j]->GetMapper()->GetInput();     
 appendall->AddInput(polydata[j]);
}
 
vtkPolyDataWriter *writer=vtkPolyDataWriter::New();

writer->SetInput(appendall->GetOutput());
writer->SetFileName("woman.vtk");
writer->Write();

Any help is greatly appreciated.
 Parvaneh Saeedi
-----------------------------------------------------------------
Robotics and Control Laboratory
Dept. of Electrical and Computer Engineering
University of British Columbia
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20020610/8fd6f8d2/attachment.htm>


More information about the vtkusers mailing list