- decimatepro->SetInputData( bbGetInputIn() );
- decimatepro->SetTargetReduction( bbGetInputTargetReduction() );
- decimatepro->PreserveTopologyOn();
- decimatepro->Update();
- bbSetOutputOut(decimatepro->GetOutput() );
+ if (bbGetInputIn()!=NULL)
+ {
+ decimatepro->SetInputData( bbGetInputIn() );
+ decimatepro->SetTargetReduction( bbGetInputTargetReduction() );
+ decimatepro->PreserveTopologyOn();
+ printf("EED MeshReduction_DecimatePro::Process Running... \n");
+ decimatepro->Update();
+ printf("EED MeshReduction_DecimatePro::Process ...finish \n");
+ bbSetOutputOut(decimatepro->GetOutput() );
+ } else {
+ bbSetOutputOut( NULL );
+ } // if In