//=====
void MeshReduction_DecimatePro::Process()
{
-
// THE MAIN PROCESSING METHOD BODY
// Here we simply set the input 'In' value to the output 'Out'
// And print out the output value
// (the one provided in the attribute 'name' of the tag 'input')
// * TYPE is the C++ type of the input/output
// (the one provided in the attribute 'type' of the tag 'input')
-
if (firsttime==true)
{
firsttime = false;
decimatepro = vtkDecimatePro::New();
}
-
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 );