-// -------------------------------------------------------------------------
-template< class _TMinimumSpanningTree >
-void fpa::VTK::Image::PathToPolyDataFilter< _TMinimumSpanningTree >::
-_PrepareOutput( vtkPolyData* out )
-{
- // Prepare points
- vtkPoints* points = out->GetPoints( );
- if( points == NULL )
- {
- points = vtkPoints::New( );
- out->SetPoints( points );
- points->Delete( );
-
- } // fi
-
- // Prepare points
- vtkCellArray* lines = out->GetLines( );
- if( lines == NULL )
- {
- lines = vtkCellArray::New( );
- out->SetLines( lines );
- out->SetVerts( vtkCellArray::New( ) );
- out->SetPolys( vtkCellArray::New( ) );
- out->SetStrips( vtkCellArray::New( ) );
- lines->Delete( );
-
- } // fi
-}
-
-#endif // __FPA__VTK__IMAGE__PATHTOPOLYDATAFILTER__HXX__
-