MeshWriter( )
: Superclass( )
{
- this->SetNumberOfInputs( 1 );
+ this->_AddInput( "Input" );
this->m_Parameters->ConfigureAsString( "FileName", "" );
}
_GenerateData( )
{
cpPlugins::Interface::Mesh* mesh =
- this->GetInput< cpPlugins::Interface::Mesh >( 0 );
+ this->GetInput< cpPlugins::Interface::Mesh >( "Input" );
if( mesh == NULL )
return( "MeshWriter: No input mesh." );
vtkPolyData* i = mesh->GetVTK< vtkPolyData >( );