]> Creatis software - cpPlugins.git/blobdiff - lib/cpPlugins/Plugins/BasicFilters/Cutter.cxx
...
[cpPlugins.git] / lib / cpPlugins / Plugins / BasicFilters / Cutter.cxx
index a0b051d16c7d173977a9894edc5458f17f9c2b62..a6a916cbd48f129f92bb30ef916236473c3d161e 100644 (file)
@@ -13,8 +13,8 @@ cpPlugins::BasicFilters::Cutter::
 Cutter( )
   : Superclass( )
 {
-  this->_AddInput( "InputMesh", true );
-  this->_AddInput( "InputFunction", true );
+  this->_AddInput( "InputMesh" );
+  this->_AddInput( "InputFunction" );
   this->_AddOutput< cpPlugins::Interface::Mesh >( "Output" );
 }
 
@@ -34,9 +34,6 @@ _GenerateData( )
     this->GetInputData< cpPlugins::Interface::ImplicitFunction >(
       "InputFunction"
       );
-  if( function == NULL )
-    return( "Cutter: Input data 1 is not a valid implicit function." );
-
   vtkCutter* cutter = this->_CreateVTK< vtkCutter >( );
   cutter->DebugOn( );
   cutter->SetInputData( mesh->GetVTK< vtkPolyData >( ) );