[vtkusers] Error in writing vtkPolyDataWriter
Alexander Trum
a.trum at teraport.de
Tue Jun 11 11:21:52 EDT 2002
Parvaneh Saeedi schrieb:
>
> 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]);
> }
Perhaps
appendall->Update();
will help.
>
> 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
>
--
Alexander Trum
Dipl.-Math. (FH)
Senior Softwareentwickler
Engineering IT Consulting
Teraport GmbH
Tel: +49-(0)89-651086-721
Fax: +49-(0)89-651086-701
Cell:+49-(0)170-4904748
mailto:alexander.trum at teraport.de
More information about the vtkusers
mailing list