// * TYPE is the C++ type of the input/output
// (the one provided in the attribute 'type' of the tag 'input')
+ printf("EED MeshReduction_DecimatePro::Process In=%p \n",bbGetInputIn() );
+
if (firsttime==true)
{
firsttime = false;
decimatepro = vtkDecimatePro::New();
}
- decimatepro->SetInputData( bbGetInputIn() );
- decimatepro->SetTargetReduction( bbGetInputTargetReduction() );
- decimatepro->PreserveTopologyOn();
- decimatepro->Update();
- bbSetOutputOut(decimatepro->GetOutput() );
+
+ if (bbGetInputIn()!=NULL)
+ {
+ decimatepro->SetInputData( bbGetInputIn() );
+ decimatepro->SetTargetReduction( bbGetInputTargetReduction() );
+ decimatepro->PreserveTopologyOn();
+ decimatepro->Update();
+ bbSetOutputOut(decimatepro->GetOutput() );
+ } else {
+ bbSetOutputOut( NULL );
+ } // if In
}
//=====
// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
decimatepro = NULL;
bbSetInputIn(NULL);
bbSetInputTargetReduction(0.5);
+ bbSetOutputOut( NULL );
}
//=====
// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)