[vtkusers] vtkAppendPolyData

Ahmed Mahmoud ahmedmm at gega.net
Wed Feb 7 15:34:20 EST 2001


Hello all,
I have 2 poly data files representing an organ .The first file is the 3D of
the upper of the organ , and the second  file is the 3D of the lower of the
organ .
I used vtkAppendPolyData to concatenate the 2 poly data files .
The resultant file is one poly data file , the 2 organs overlaped.
How can I concatenate the two files to form ONE organ .
Thank you.

Ahmed

My code
///////////////
 vtkPolyDataReader* reader=vtkPolyDataReader::New();
 vtkPolyDataReader* read = vtkPolyDataReader::New();

 vtkAppendPolyData* append = vtkAppendPolyData::New();
     append->AddInput(reader->GetOutput());
     append->AddInput(read->GetOutput());
     append->Update ();
 vtkPolyDataWriter *writer=vtkPolyDataWriter::New();
    writer->SetInput(append->GetOutput());
    writer->Update();






More information about the vtkusers mailing list