}
// -------------------------------------------------------------------------
-std::string cpPluginsImageMeshFilters::TriangleMeshToBinaryImageFilter::
+void cpPluginsImageMeshFilters::TriangleMeshToBinaryImageFilter::
_GenerateData( )
{
typedef itk::Mesh< float, 3 > _3F;
auto _3f = this->GetInputData( "Input" )->GetITK< _3F >( );
auto _3d = this->GetInputData( "Input" )->GetITK< _3D >( );
- if ( _3f != NULL ) return( this->_GD0( _3f ) );
- else if( _3d != NULL ) return( this->_GD0( _3d ) );
- else
- return( "TriangleMeshToBinaryImageFilter: No valid input itk mesh." );
+ if ( _3f != NULL ) this->_GD0( _3f );
+ else if( _3d != NULL ) this->_GD0( _3d );
+ else this->_Error( "No valid input mesh." );
}
// -------------------------------------------------------------------------
template< class _TMesh >
-std::string cpPluginsImageMeshFilters::TriangleMeshToBinaryImageFilter::
+void cpPluginsImageMeshFilters::TriangleMeshToBinaryImageFilter::
_GD0( _TMesh* mesh )
{
- return( this->_GD1< _TMesh, unsigned char >( mesh ) );
+ this->_GD1< _TMesh, unsigned char >( mesh );
}
// -------------------------------------------------------------------------
template< class _TMesh, class _TPixel >
-std::string cpPluginsImageMeshFilters::TriangleMeshToBinaryImageFilter::
+void cpPluginsImageMeshFilters::TriangleMeshToBinaryImageFilter::
_GD1( _TMesh* mesh )
{
typedef cpPlugins::BoundingBox _TBB;
// Connect output
auto out = this->GetOutputData( "Output" );
out->SetITK( filter->GetOutput( ) );
- return( "" );
-
}
// eof - $RCSfile$