Cutter( )
: Superclass( )
{
- this->_AddInput( "InputMesh", true );
- this->_AddInput( "InputFunction", true );
+ this->_AddInput( "InputMesh" );
+ this->_AddInput( "InputFunction" );
this->_AddOutput< cpPlugins::Interface::Mesh >( "Output" );
}
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 >( ) );