]> Creatis software - creaVtk.git/blobdiff - bbtk_creaVtk_PKG/src/bbcreaVtkCutter.cxx
#3465 cutter box
[creaVtk.git] / bbtk_creaVtk_PKG / src / bbcreaVtkCutter.cxx
index 2b7c9aed7ef57599f5e19a0f21e8c8797862dd7a..d8d148c36dbf158998e04025a6083de5c36433bd 100644 (file)
@@ -5,8 +5,7 @@
 #include "bbcreaVtkPackage.h"
 #include "vtkCutter.h"
 #include "vtkStripper.h"
-#include "vtkPlane.h"
-#
+
 namespace bbcreaVtk
 {
 
@@ -43,27 +42,21 @@ void Cutter::Process()
     vtkPolyData        *poly;
        vtkStripper     *strips;
 
-       vtkPlane        *plane;
-       plane  = vtkPlane::New();
-       plane->SetOrigin(0,0,30);
-       plane->SetNormal(0,0,1);
-       
        cutter = vtkCutter::New();
        cutter->SetInputData( bbGetInputIn() );
-    cutter->SetCutFunction( plane );
+    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 );
-//     bbSetOutputOut( cutter->GetOutput() );
-       
-       
+               
 }
 //===== 
 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)