TriangleMeshToBinaryImageFilter( )
: Superclass( )
{
- this->_AddInput( "Input", true );
+ this->_AddInput( "Input" );
this->_AddOutput< cpPlugins::Interface::Image >( "Output" );
this->m_Parameters->ConfigureAsUint( "InsideValue" );
typedef itk::Mesh< double, 3 > _3D;
auto input = this->GetInputData< cpPlugins::Interface::Mesh >( "Input" );
- if( input == NULL )
- return( "TriangleMeshToBinaryImageFilter: No valid input mesh." );
-
auto in_3f = input->GetITK< _3F >( );
auto in_3d = input->GetITK< _3D >( );
if ( in_3f != NULL ) return( this->_GD0( in_3f ) );
// Connect output
auto out = this->GetOutputData< cpPlugins::Interface::Image >( "Output" );
- if( out != NULL )
- {
- out->SetITK< I >( filter->GetOutput( ) );
- return( "" );
- }
- else
- return( "TriangleMeshToBinaryImageFilter: output not correctly created." );
+ out->SetITK( filter->GetOutput( ) );
+ return( "" );
}
// eof - $RCSfile$