_GenerateData( )
{
// Get inputs
- cpPlugins::Interface::Mesh* mesh =
- this->GetInput< cpPlugins::Interface::Mesh >( "InputMesh" );
- cpPlugins::Interface::ImplicitFunction* function =
- this->GetInput< cpPlugins::Interface::ImplicitFunction >(
+ auto mesh = this->GetInputData< cpPlugins::Interface::Mesh >( "InputMesh" );
+ auto function =
+ this->GetInputData< cpPlugins::Interface::ImplicitFunction >(
"InputFunction"
);
if( function == NULL )
cutter->Update( );
// Execute filter
- cpPlugins::Interface::Mesh* out =
- this->GetOutput< cpPlugins::Interface::Mesh >( "Output" );
+ auto out = this->GetOutputData< cpPlugins::Interface::Mesh >( "Output" );
out->SetVTK( cutter->GetOutput( ) );
return( "" );