- vtkCutter *cutter;
- vtkPolyData *poly;
- vtkStripper *strips;
-
- cutter = vtkCutter::New();
- cutter->SetInputData( bbGetInputIn() );
- cutter->SetCutFunction( bbGetInputImplicitFunction() );
- cutter->Update();
-
- strips = vtkStripper::New();
- strips->SetInputData( cutter->GetOutput() );
- strips->Update();
- poly = vtkPolyData::New();
- poly->SetPoints( strips->GetOutput()->GetPoints() );
- poly->SetPolys( strips->GetOutput()->GetLines() );
-
-// bbSetOutputOut( cutter->GetOutput() );
- bbSetOutputOut( poly );
-
+ printf("EED Cutter::Process start this=%p ImFu=%p \n ", this, bbGetInputImplicitFunction() );
+ if ( (bbGetInputActive()==true) && (bbGetInputIn()!=NULL) )
+ {
+ vtkCutter *cutter;
+ cutter = vtkCutter::New();
+ cutter->SetInputData( bbGetInputIn() );
+ cutter->SetCutFunction( bbGetInputImplicitFunction() );
+ cutter->Update();
+ bbSetOutputOut( cutter->GetOutput() );
+ } else {
+ bbSetOutputOut( NULL );
+ }
+
+ printf("EED Cutter::Process end\n ");