- booleanOperation->SetOperModeToIntersection();
- }
- if (bbGetInputOperation()==2 )
- {
- booleanOperation->SetOperModeToDifference();
- }
-
+ //TRIANGLE FILTER NOT NEEDED, this can handle non triangle meshes.
+ // vtkPolyDataBooleanFilter is not a vtk filter (this one yes: vtkBooleanOperationPolyDataFilter )
+
+ // https://github.com/zippy84/vtkbool
+ // vtkPolyDataBooleanFilter is a local code creaVtk lib
+ vtkPolyDataBooleanFilter *booleanOperation = vtkPolyDataBooleanFilter::New();
+ booleanOperation->SetInputData(0, bbGetInputIn1() );
+ booleanOperation->SetInputData(1, bbGetInputIn2() );
+ if (bbGetInputOperation()==0 )
+ {
+ booleanOperation->SetOperModeToUnion();
+ }
+ if (bbGetInputOperation()==1 )
+ {
+ booleanOperation->SetOperModeToIntersection();
+ }
+ if (bbGetInputOperation()==2 )
+ {
+ booleanOperation->SetOperModeToDifference();
+ }