]> Creatis software - creaVtk.git/commitdiff
#3515 bbcreaVtkPlaneWidget_Base Set origin with no Box action
authorEduardo DAVILA <davila@creatis.insa-lyon.fr>
Wed, 26 Jul 2023 06:36:38 +0000 (08:36 +0200)
committerEduardo DAVILA <davila@creatis.insa-lyon.fr>
Wed, 26 Jul 2023 06:36:38 +0000 (08:36 +0200)
bbtk_creaVtk_PKG/.DS_Store
bbtk_creaVtk_PKG/src/bbcreaVtkPlaneWidget.cxx
bbtk_creaVtk_PKG/src/bbcreaVtkPlaneWidget_Base.cxx
bbtk_creaVtk_PKG/src/bbcreaVtkPlaneWidget_Base.h
lib/creaVtk/vtkPolyDataBooleanFilter.cxx

index 16c062dcddc78d583b5c1028b262979d0412882c..0c08dcd2d661ecd0e30bdbcabd354fd1d3a3f328 100644 (file)
Binary files a/bbtk_creaVtk_PKG/.DS_Store and b/bbtk_creaVtk_PKG/.DS_Store differ
index d7ae9a41285c7fd28f9737dad30e530e19594762..23d3d8b4e6911fa47802e4b71bc1e64a7f366247 100644 (file)
@@ -8,7 +8,7 @@ namespace bbcreaVtk
 
 
 
-void boxcreaVtkPlaneWidget::Execute()  // virutal
+void boxcreaVtkPlaneWidget::Execute()  // virtual
 {
     std::vector<double> center = _box->_boxcreavtkplanewidget.GetCenter();
     std::vector<double> normal = _box->_boxcreavtkplanewidget.GetNormal();
index cbc406fde2965d1acd56b9d524c01857b73c42d7..2eb006a63623250122f804bc37c45c1dc20836fe 100644 (file)
@@ -51,7 +51,7 @@ void PlaneWidget_Base::Process()
     {
        bbGetInputIn()->SetOrigin(bbGetInputParamVector());
        bbGetInputIn()->Process();
-        bbGetInputIn()->Execute();
+//EED        bbGetInputIn()->Execute();
     } // if Type == 3
 }
 
index 5d8616b1c35c5d30291457bcb53a4ce9fa68a031..4d0283e57c106fcf8be366376ba10da7c0584ee6 100644 (file)
@@ -41,7 +41,7 @@ BBTK_BEGIN_DESCRIBE_BLACK_BOX(PlaneWidget_Base,bbtk::AtomicBlackBox);
   BBTK_INPUT(PlaneWidget_Base,In,"Base creaVtkPlaneWidget ", creaVtkPlaneWidget* ,"");
   BBTK_INPUT(PlaneWidget_Base,Type,"(default 0) 0:nothing  1:Move Normal Direction (Param=step) 2:Set Normal (ParamVector=Normal)   3:Set Origin (ParamVector=Origin)", int ,"");
   BBTK_INPUT(PlaneWidget_Base,Param,"Type=1 step ", double ,"");
-  BBTK_INPUT(PlaneWidget_Base,ParamVector,"Type=2 Set normal, Type=3 Set origin", std::vector<double> ,"");
+  BBTK_INPUT(PlaneWidget_Base,ParamVector,"Type=2 Set normal, Type=3 Set origin of the plane with no Box action", std::vector<double> ,"");
 //  BBTK_OUTPUT(PlaneWidget_Base,Out,"First output",double,"");
 BBTK_END_DESCRIBE_BLACK_BOX(PlaneWidget_Base);
 //===== 
index ea6a9a260c087709d0f52991a004d80073be3d92..467190bb0d568756e78a981b0f469918630ccc90 100644 (file)
@@ -2951,7 +2951,8 @@ void Merger::MergeGroup (const GroupType &group, PolysType &merged) {
         }
     }
 
-    WriteVTK("linesA.vtk", linesA);
+    //EED 2023-07-24
+//    WriteVTK("linesA.vtk", linesA);
 
     vtkSmartPointer<vtkModifiedBSPTree> bspTreeA = vtkSmartPointer<vtkModifiedBSPTree>::New();
     bspTreeA->SetDataSet(linesA);
@@ -3166,7 +3167,8 @@ void Merger::MergeGroup (const GroupType &group, PolysType &merged) {
 
     std::cout << connected;
 
-    WriteVTK("linesB.vtk", linesB);
+//EED 2023-07-24
+//    WriteVTK("linesB.vtk", linesB);
 
     // stage 1
 
@@ -3209,7 +3211,8 @@ void Merger::MergeGroup (const GroupType &group, PolysType &merged) {
     PolysType newPolysA;
     GetPolys(refPts, {polyA}, newPolysA);
 
-    WritePolys("merged_stage1.vtk", newPolysA);
+    //EED 2023-07-24
+//    WritePolys("merged_stage1.vtk", newPolysA);
 
     // stage 2
 
@@ -3277,7 +3280,8 @@ void Merger::MergeGroup (const GroupType &group, PolysType &merged) {
     PolysType newPolysB;
     GetPolys(refPts, splitted, newPolysB);
 
-    WritePolys("merged_stage2.vtk", newPolysB);
+    //EED 2023-07-24
+//    WritePolys("merged_stage2.vtk", newPolysB);
 
     std::move(newPolysB.begin(), newPolysB.end(), std::back_inserter(merged));