- maskpoints->SetOnRatio( bbGetInputRatio() );
- maskpoints->RandomModeOn();
- maskpoints->SetMaximumNumberOfPoints(5000);
- maskpoints->Update();
- bbSetOutputOut( maskpoints->GetOutput() );
+ if (bbGetInputActive()==true)
+ {
+ //EED 2017-01-01 Migration VTK7
+ #if (VTK_MAJOR_VERSION <= 5)
+ maskpoints->SetInput( bbGetInputIn() );
+ #endif
+ #if (VTK_MAJOR_VERSION >= 6)
+ maskpoints->SetInputData( bbGetInputIn() );
+ #endif
+
+ maskpoints->SetOnRatio( bbGetInputRatio() );
+
+ if (bbGetInputRandomType()==-1)
+ {
+ maskpoints->RandomModeOff();
+ } else if(bbGetInputRandomType()==0) {
+ maskpoints->RandomModeOn();
+ maskpoints->SetRandomModeType(0);
+ }
+
+ // maskpoints->SetMaximumNumberOfPoints(5000);
+ maskpoints->Update();
+ bbSetOutputOut( maskpoints->GetOutput() );
+ } // if Active