]> Creatis software - creaMaracasVisu.git/commitdiff
Clean code
authorEduardo DAVILA <davila@creatis.insa-lyon.fr>
Tue, 27 Jun 2023 13:48:05 +0000 (15:48 +0200)
committerEduardo DAVILA <davila@creatis.insa-lyon.fr>
Tue, 27 Jun 2023 13:48:05 +0000 (15:48 +0200)
bbtk/bbs/boxes/Mesh_tool_ApplyThresholdConnectivity.bbg
bbtk/bbs/boxes/Mesh_tool_ApplyThresholdConnectivity.bbs

index 29bab7318b19b67a744adc4f0ad6600749b83e93..fd85d5b405db194ff8f1b343001f06410a87ea28 100644 (file)
@@ -1,6 +1,6 @@
 # ----------------------------------
 # - BBTKGEditor v 1.5 BBG BlackBox Diagram file
-# - /home/garzon/Creatis/C23/creatools_source/creaMaracasVisu/bbtk/bbs/boxes/Mesh_tool_ApplyThresholdConnectivity.bbg
+# - /Users/davila/Creatis/C23/creatools_source/creaMaracasVisu/bbtk/bbs/boxes/Mesh_tool_ApplyThresholdConnectivity.bbg
 # ----------------------------------
 
 APP_START
@@ -72,7 +72,7 @@ COMPLEX_PORT
 meshmanagermodel
 -150.374274:130.740991:-900.000000
 FIN_COMPLEX_PORT
-BOXES:65
+BOXES:77
 BOX
 creaMaracasVisu:ShowNPoints:showNpoints
 ISEXEC:FALSE
@@ -94,8 +94,8 @@ FIN_BOX
 BOX
 vtk:UpdateRender:Box11
 ISEXEC:FALSE
-42.216062:-22.758151:-900.000000
-64.241062:-25.258151:-900.000000
+51.386486:-20.764581:-900.000000
+73.411486:-23.264581:-900.000000
 PORT
 Active:"true"
 FIN_BOX
@@ -152,22 +152,12 @@ ISEXEC:FALSE
 -89.231259:107.696821:-900.000000
 FIN_BOX
 BOX
-creaVtk:BooleanOperationPolyDataFilter:Box77
-ISEXEC:FALSE
--75.291259:-24.273250:-900.000000
--51.561259:-26.773250:-900.000000
-PORT
-BoxProcessMode:"Manual"
-PORT
-ReorientDifferenceCells:"false"
-FIN_BOX
-BOX
 wx:ComboBox:Box78
 ISEXEC:FALSE
--153.877713:-5.775167:-900.000000
--127.597713:-8.275167:-900.000000
+-152.065376:-3.962830:-900.000000
+-125.785376:-6.462830:-900.000000
 PORT
-In:"Union Intersection Difference"
+In:"Union Intersection Difference Replace"
 FIN_BOX
 BOX
 wx:LayoutLine:Box79
@@ -182,8 +172,8 @@ FIN_BOX
 BOX
 wx:CommandButton:Box80
 ISEXEC:FALSE
--99.569055:58.854673:-900.000000
--77.294055:56.354673:-900.000000
+-97.575485:55.864317:-900.000000
+-75.300485:53.364317:-900.000000
 PORT
 Label:"Run"
 FIN_BOX
@@ -216,8 +206,8 @@ FIN_BOX
 BOX
 creaMaracasVisu:PolyDataToActor_Widget:Box37
 ISEXEC:FALSE
--67.388857:-39.476785:-900.000000
--44.368857:-41.976785:-900.000000
+-61.408146:-48.900936:-900.000000
+-38.388146:-51.400936:-900.000000
 PORT
 color:"0 1 1"
 PORT
@@ -226,8 +216,8 @@ FIN_BOX
 BOX
 wx:LayoutLine:Box38
 ISEXEC:FALSE
--178.794283:-132.592349:-900.000000
--145.474283:-135.092349:-900.000000
+-178.794283:-128.009131:-900.000000
+-145.474283:-130.509131:-900.000000
 PORT
 Orientation:"H"
 PORT
@@ -380,8 +370,8 @@ FIN_BOX
 BOX
 wx:LayoutTab:Box86
 ISEXEC:FALSE
-85.280357:-100.695922:-900.000000
-118.600357:-103.195922:-900.000000
+58.263491:-85.257713:-900.000000
+91.583491:-87.757713:-900.000000
 FIN_BOX
 BOX
 creaVtk:MeshManager:Box92
@@ -392,16 +382,16 @@ FIN_BOX
 BOX
 creaVtk:MeshManager_tool:Box93
 ISEXEC:FALSE
--57.573698:-124.706713:-900.000000
--35.073698:-127.206713:-900.000000
+-57.374341:-145.041131:-900.000000
+-34.874341:-147.541131:-900.000000
 PORT
 Tool:"35"
 FIN_BOX
 BOX
 std:MagicBox:Box94
 ISEXEC:FALSE
--68.796849:-31.671400:-900.000000
--47.196849:-34.171400:-900.000000
+-70.083608:-34.154301:-900.000000
+-48.483608:-36.654301:-900.000000
 FIN_BOX
 BOX
 creaMaracasVisu:wxVtkBaseView_Info:Box96
@@ -410,12 +400,6 @@ ISEXEC:FALSE
 -140.373292:101.016214:-900.000000
 FIN_BOX
 BOX
-creaVtk:PolyDataNormals:Box97
-ISEXEC:FALSE
--84.372119:-83.662351:-900.000000
--62.077119:-86.162351:-900.000000
-FIN_BOX
-BOX
 wx:LayoutLine:Box98
 ISEXEC:FALSE
 -143.911108:-17.437953:-900.000000
@@ -530,8 +514,8 @@ FIN_BOX
 BOX
 creaVtk:MarchingCubes2:Box113
 ISEXEC:FALSE
-47.211221:19.109734:-900.000000
-69.606221:16.609734:-900.000000
+51.381243:13.760046:-900.000000
+73.776243:11.260046:-900.000000
 PORT
 BoxProcessMode:"Manual"
 PORT
@@ -540,8 +524,8 @@ FIN_BOX
 BOX
 creaVtk:ImageGaussianSmooth2:Box114
 ISEXEC:FALSE
-50.788309:26.751303:-900.000000
-73.903309:24.251303:-900.000000
+54.577740:20.490503:-900.000000
+77.692740:17.990503:-900.000000
 PORT
 StdDevX:"1"
 PORT
@@ -552,14 +536,8 @@ FIN_BOX
 BOX
 std:MultipleInputs:Box118
 ISEXEC:FALSE
-19.227572:22.541579:-900.000000
-41.307572:20.041579:-900.000000
-FIN_BOX
-BOX
-std:MagicBox:Box119
-ISEXEC:FALSE
--63.571140:-72.648910:-900.000000
--41.861140:-75.148910:-900.000000
+11.310956:21.501957:-900.000000
+33.390956:19.001957:-900.000000
 FIN_BOX
 BOX
 std:MagicBox:Box120
@@ -580,12 +558,6 @@ PORT
 lstTransparenceBoundaries:"0"
 FIN_BOX
 BOX
-creaVtk:CleanPolyData:Box123
-ISEXEC:FALSE
--82.462323:-64.239585:-900.000000
--60.277323:-66.739585:-900.000000
-FIN_BOX
-BOX
 wx:LayoutLine:Box124
 ISEXEC:FALSE
 -109.234083:-43.655971:-900.000000
@@ -595,7 +567,137 @@ Orientation:"V"
 PORT
 WinTitle:"1.3   Apply Changes"
 FIN_BOX
-CONNECTIONS:126
+BOX
+wx:LayoutTab:Box125
+ISEXEC:FALSE
+97.591803:-84.564597:-900.000000
+130.911803:-87.064597:-900.000000
+FIN_BOX
+BOX
+wx:LayoutLine:Box126
+ISEXEC:FALSE
+79.081175:-100.057927:-900.000000
+112.401175:-102.557927:-900.000000
+PORT
+Orientation:"H"
+FIN_BOX
+BOX
+creaVtk:PolyDataToImageData:Box127
+ISEXEC:FALSE
+-14.496502:-51.621874:-900.000000
+8.413498:-54.121874:-900.000000
+PORT
+BoxProcessMode:"Manual"
+FIN_BOX
+BOX
+vtk:CreateImage:Box128
+ISEXEC:FALSE
+-18.574260:47.712301:-900.000000
+3.465740:45.212301:-900.000000
+FIN_BOX
+BOX
+vtk:BinaryOperations:Box129
+ISEXEC:FALSE
+-18.030559:-91.275801:-900.000000
+4.374441:-93.775801:-900.000000
+FIN_BOX
+BOX
+creaVtk:ImageThreshold:Box130
+ISEXEC:FALSE
+-4.271628:-97.467402:-900.000000
+18.018372:-99.967402:-900.000000
+PORT
+InValue:"255"
+PORT
+OutValue:"0"
+PORT
+Upper:"10000"
+FIN_BOX
+BOX
+creaVtk:MarchingCubes2:Box131
+ISEXEC:FALSE
+-6.206057:-110.728197:-900.000000
+16.188943:-113.228197:-900.000000
+PORT
+Value:"128"
+FIN_BOX
+BOX
+creaVtk:ImageGaussianSmooth2:Box132
+ISEXEC:FALSE
+-3.881129:-104.750683:-900.000000
+19.233871:-107.250683:-900.000000
+PORT
+StdDevX:"1"
+PORT
+StdDevY:"1"
+PORT
+StdDevZ:"1"
+FIN_BOX
+BOX
+creaVtk:PolyDataNormals:Box133
+ISEXEC:FALSE
+-6.907754:-117.254824:-900.000000
+15.497246:-119.754824:-900.000000
+PORT
+BoxProcessMode:"Manual"
+FIN_BOX
+BOX
+std:StringSelect:Box134
+ISEXEC:FALSE
+9.772334:-73.640117:-900.000000
+34.292334:-76.140117:-900.000000
+PORT
+In0:"0  128"
+PORT
+In1:"0  500"
+PORT
+In2:"1  128"
+PORT
+In3:"7  128"
+FIN_BOX
+BOX
+std:GetVectorStringElement:Box135
+ISEXEC:FALSE
+-3.047477:-81.497421:-900.000000
+20.017523:-83.997421:-900.000000
+PORT
+I:"0"
+FIN_BOX
+BOX
+std:GetVectorStringElement:Box136
+ISEXEC:FALSE
+23.113302:-81.876846:-900.000000
+46.178302:-84.376846:-900.000000
+PORT
+I:"1"
+FIN_BOX
+BOX
+PackRecalage:AddImageToVector:Box137
+ISEXEC:FALSE
+144.337535:27.113721:-900.000000
+168.857535:24.613721:-900.000000
+FIN_BOX
+BOX
+vtk:GetVectorVtkImageDataElement:Box138
+ISEXEC:FALSE
+143.073842:15.794855:-900.000000
+167.018842:13.294855:-900.000000
+PORT
+I:"0"
+FIN_BOX
+BOX
+vtk:CreateImage:Box139
+ISEXEC:FALSE
+141.261505:36.719106:-900.000000
+163.301505:34.219106:-900.000000
+FIN_BOX
+BOX
+toolsbbtk:ImageVtkPropertiesWidget:Box140
+ISEXEC:FALSE
+143.159186:-49.514511:-900.000000
+166.484186:-52.014511:-900.000000
+FIN_BOX
+CONNECTIONS:148
 CONNECTION
 Box31:BoxChange:Box11:BoxExecute
 NumberOfControlPoints:0
@@ -612,9 +714,6 @@ CONNECTION
 Box68:Spacing:Box60:Spacing
 NumberOfControlPoints:0
 CONNECTION
-Box78:Out:Box77:Operation
-NumberOfControlPoints:0
-CONNECTION
 Box08:Widget:widget:widget
 NumberOfControlPoints:0
 CONNECTION
@@ -630,9 +729,6 @@ CONNECTION
 mesh:mesh:Box67:In
 NumberOfControlPoints:0
 CONNECTION
-Box67:Out:Box77:In1
-NumberOfControlPoints:0
-CONNECTION
 Box66:Out:Box48:render
 NumberOfControlPoints:0
 CONNECTION
@@ -678,9 +774,6 @@ CONNECTION
 showNpoints:WidgetShowNPoints:Box52:WidgetShowNPoints
 NumberOfControlPoints:0
 CONNECTION
-Box53:BoxChange:Box77:BoxExecute
-NumberOfControlPoints:0
-CONNECTION
 Box42:BoxChange:Box53:In3
 NumberOfControlPoints:0
 CONNECTION
@@ -762,9 +855,6 @@ CONNECTION
 Box84:Widget:Box44:Widget9
 NumberOfControlPoints:0
 CONNECTION
-Box86:Widget:Box38:Widget2
-NumberOfControlPoints:0
-CONNECTION
 showNpoints:Widget:Box86:Widget2
 NumberOfControlPoints:0
 CONNECTION
@@ -786,9 +876,6 @@ CONNECTION
 Box92:MeshManagerModel:Box93:MeshManagerModel
 NumberOfControlPoints:0
 CONNECTION
-Box77:BoxChange:Box93:BoxExecute
-NumberOfControlPoints:0
-CONNECTION
 Box92:MeshBase:Box72:_polydata
 NumberOfControlPoints:0
 CONNECTION
@@ -801,9 +888,6 @@ CONNECTION
 Box94:BoxChange:Box37:boxexecute
 NumberOfControlPoints:0
 CONNECTION
-Box77:BoxChange:Box94:BoxExecute
-NumberOfControlPoints:0
-CONNECTION
 Box71:Out:Box96:wxVtkBaseView
 NumberOfControlPoints:0
 CONNECTION
@@ -816,12 +900,6 @@ CONNECTION
 Box48:widget:Box38:Widget8
 NumberOfControlPoints:0
 CONNECTION
-Box97:Out:Box45:Mesh
-NumberOfControlPoints:0
-CONNECTION
-Box97:Out:Box93:Mesh
-NumberOfControlPoints:0
-CONNECTION
 Box43:Widget:Box44:Widget1
 NumberOfControlPoints:0
 CONNECTION
@@ -873,9 +951,6 @@ CONNECTION
 Box110:Out:Box102:Threshold
 NumberOfControlPoints:0
 CONNECTION
-Box105:Widget:Box86:Widget5
-NumberOfControlPoints:0
-CONNECTION
 Box63:BoxChange:Box111:In1
 NumberOfControlPoints:0
 CONNECTION
@@ -900,18 +975,12 @@ CONNECTION
 Box113:Out:Box48:polydata
 NumberOfControlPoints:0
 CONNECTION
-Box113:Out:Box77:In2
-NumberOfControlPoints:0
-CONNECTION
 Box113:Out:Box62:_polydata
 NumberOfControlPoints:0
 CONNECTION
 Box113:BoxChange:Box48:boxexecute
 NumberOfControlPoints:0
 CONNECTION
-Box102:Out:Box114:In
-NumberOfControlPoints:0
-CONNECTION
 Box114:Out:Box113:In
 NumberOfControlPoints:0
 CONNECTION
@@ -963,15 +1032,114 @@ CONNECTION
 Box102:Out:Box122:In
 NumberOfControlPoints:0
 CONNECTION
-Box77:Out:Box123:In
+Box42:Widget:Box124:Widget1
 NumberOfControlPoints:0
 CONNECTION
-Box123:Out:Box97:In
+Box124:Widget:Box82:Widget4
 NumberOfControlPoints:0
 CONNECTION
-Box42:Widget:Box124:Widget1
+Box105:Widget:Box125:Widget2
 NumberOfControlPoints:0
 CONNECTION
-Box124:Widget:Box82:Widget4
+Box86:Widget:Box126:Widget2
+NumberOfControlPoints:0
+CONNECTION
+Box125:Widget:Box126:Widget4
+NumberOfControlPoints:0
+CONNECTION
+Box126:Widget:Box38:Widget2
+NumberOfControlPoints:0
+CONNECTION
+Box67:Out:Box127:InPolyData
+NumberOfControlPoints:0
+CONNECTION
+Box68:Spacing:Box128:Spacing
+NumberOfControlPoints:0
+CONNECTION
+Box68:TypeName:Box128:OutputFormat
+NumberOfControlPoints:0
+CONNECTION
+Box68:Size:Box128:Dimensions
+NumberOfControlPoints:0
+CONNECTION
+Box128:Out:Box127:InImage
+NumberOfControlPoints:0
+CONNECTION
+Box127:Out:Box129:In1
+NumberOfControlPoints:0
+CONNECTION
+Box102:Out:Box129:In2
+NumberOfControlPoints:0
+CONNECTION
+Box129:Out:Box130:In
+NumberOfControlPoints:0
+CONNECTION
+Box132:Out:Box131:In
+NumberOfControlPoints:0
+CONNECTION
+Box130:Out:Box132:In
+NumberOfControlPoints:0
+CONNECTION
+Box131:Out:Box133:In
+NumberOfControlPoints:0
+CONNECTION
+Box53:BoxChange:Box133:BoxExecute
+NumberOfControlPoints:0
+CONNECTION
+Box133:Out:Box93:Mesh
+NumberOfControlPoints:0
+CONNECTION
+Box133:Out:Box45:Mesh
+NumberOfControlPoints:0
+CONNECTION
+Box133:BoxChange:Box94:BoxExecute
+NumberOfControlPoints:0
+CONNECTION
+Box133:BoxChange:Box93:BoxExecute
+NumberOfControlPoints:0
+CONNECTION
+Box78:Out:Box134:In
+NumberOfControlPoints:0
+CONNECTION
+Box134:Out:Box135:In
+NumberOfControlPoints:0
+CONNECTION
+Box135:Out:Box129:Operation
+NumberOfControlPoints:0
+CONNECTION
+Box134:Out:Box136:In
+NumberOfControlPoints:0
+CONNECTION
+Box136:Out:Box130:Lower
+NumberOfControlPoints:0
+CONNECTION
+Box102:Out:Box137:In0
+NumberOfControlPoints:0
+CONNECTION
+Box137:Out:Box138:In
+NumberOfControlPoints:0
+CONNECTION
+Box68:TypeName:Box139:OutputFormat
+NumberOfControlPoints:0
+CONNECTION
+Box68:Spacing:Box139:Spacing
+NumberOfControlPoints:0
+CONNECTION
+Box68:Size:Box139:Dimensions
+NumberOfControlPoints:0
+CONNECTION
+Box139:Out:Box138:ErrorValue
+NumberOfControlPoints:0
+CONNECTION
+Box138:Out:Box114:In
+NumberOfControlPoints:0
+CONNECTION
+Box53:BoxChange:Box127:BoxExecute
+NumberOfControlPoints:0
+CONNECTION
+Box35:Out:Box140:in
+NumberOfControlPoints:0
+CONNECTION
+Box140:widget:Box125:Widget3
 NumberOfControlPoints:0
 APP_END
index 8c5689014f94f92414c630072a107b8434be89d7..e3349ceb6c48e079ba6b6f4114eb699256ecb887 100644 (file)
@@ -1,6 +1,6 @@
 # ----------------------------------
 # - BBTKGEditor v 1.5 BBS BlackBox Script (Complex Box)
-# - /home/garzon/Creatis/C23/creatools_source/creaMaracasVisu/bbtk/bbs/boxes/Mesh_tool_ApplyThresholdConnectivity.bbs
+# - /Users/davila/Creatis/C23/creatools_source/creaMaracasVisu/bbtk/bbs/boxes/Mesh_tool_ApplyThresholdConnectivity.bbs
 # ----------------------------------
 
 include std
@@ -10,6 +10,8 @@ include wx
 include vtk
 include std
 include creaVtk
+include PackRecalage
+include toolsbbtk
 
 define Mesh_tool_ApplyThresholdConnectivity creaMaracasVisu
 
@@ -49,12 +51,8 @@ new creaMaracasVisu:ShowNPoints_Tools Box60
 
 new vtk:ImageVtkProperties Box68
 
-new creaVtk:BooleanOperationPolyDataFilter Box77
-  set Box77.BoxProcessMode "Manual"
-  set Box77.ReorientDifferenceCells "false"
-
 new wx:ComboBox Box78
-  set Box78.In "Union Intersection Difference"
+  set Box78.In "Union Intersection Difference Replace"
 
 new wx:LayoutLine Box79
   set Box79.Orientation "H"
@@ -142,8 +140,6 @@ new std:MagicBox Box94
 
 new creaMaracasVisu:wxVtkBaseView_Info Box96
 
-new creaVtk:PolyDataNormals Box97
-
 new wx:LayoutLine Box98
   set Box98.Orientation "H"
 
@@ -199,8 +195,6 @@ new creaVtk:ImageGaussianSmooth2 Box114
 
 new std:MultipleInputs Box118
 
-new std:MagicBox Box119
-
 new std:MagicBox Box120
 
 new creaMaracasVisu:ColorLayerImageView Box122
@@ -208,22 +202,67 @@ new creaMaracasVisu:ColorLayerImageView Box122
   set Box122.TypeControlsInterface "2"
   set Box122.lstTransparenceBoundaries "0"
 
-new creaVtk:CleanPolyData Box123
-
 new wx:LayoutLine Box124
   set Box124.Orientation "V"
   set Box124.WinTitle "1.3   Apply Changes"
 
+new wx:LayoutTab Box125
+
+new wx:LayoutLine Box126
+  set Box126.Orientation "H"
+
+new creaVtk:PolyDataToImageData Box127
+  set Box127.BoxProcessMode "Manual"
+
+new vtk:CreateImage Box128
+
+new vtk:BinaryOperations Box129
+
+new creaVtk:ImageThreshold Box130
+  set Box130.InValue "255"
+  set Box130.OutValue "0"
+  set Box130.Upper "10000"
+
+new creaVtk:MarchingCubes2 Box131
+  set Box131.Value "128"
+
+new creaVtk:ImageGaussianSmooth2 Box132
+  set Box132.StdDevX "1"
+  set Box132.StdDevY "1"
+  set Box132.StdDevZ "1"
+
+new creaVtk:PolyDataNormals Box133
+  set Box133.BoxProcessMode "Manual"
+
+new std:StringSelect Box134
+  set Box134.In0 "0  128"
+  set Box134.In1 "0  500"
+  set Box134.In2 "1  128"
+  set Box134.In3 "7  128"
+
+new std:GetVectorStringElement Box135
+  set Box135.I "0"
+
+new std:GetVectorStringElement Box136
+  set Box136.I "1"
+
+new PackRecalage:AddImageToVector Box137
+
+new vtk:GetVectorVtkImageDataElement Box138
+  set Box138.I "0"
+
+new vtk:CreateImage Box139
+
+new toolsbbtk:ImageVtkPropertiesWidget Box140
+
 
 connect Box31.BoxChange Box11.BoxExecute
 connect Box58.Out Box57.In
 connect showNpoints.WidgetShowNPoints Box60.WidgetShowNPoints
 connect Box57.BoxChange Box60.BoxExecute
 connect Box68.Spacing Box60.Spacing
-connect Box78.Out Box77.Operation
 connect Box66.Out Box11.Renderer
 connect Box66.Out showNpoints.Renderer
-connect Box67.Out Box77.In1
 connect Box66.Out Box48.render
 connect Box48.boxchange Box31.In1
 connect Box35.Out Box68.In
@@ -236,7 +275,6 @@ connect Box42.BoxChange Box51.BoxExecute
 connect Box45.BoxChange Box51.In2
 connect Box52.BoxChange Box51.In4
 connect showNpoints.WidgetShowNPoints Box52.WidgetShowNPoints
-connect Box53.BoxChange Box77.BoxExecute
 connect Box42.BoxChange Box53.In3
 connect Box52.BoxChange Box55.In2
 connect Box63.BoxChange showNpoints.BoxExecute
@@ -259,22 +297,17 @@ connect Box40.Widget Box81.Widget4
 connect Box44.Widget Box82.Widget2
 connect Box82.Widget Box79.Widget2
 connect Box84.Widget Box44.Widget9
-connect Box86.Widget Box38.Widget2
 connect showNpoints.Widget Box86.Widget2
 connect Box57.BoxChange Box08.BoxExecute
 connect Box92.MeshManagerModel Box93.MeshManagerModel
-connect Box77.BoxChange Box93.BoxExecute
 connect Box92.MeshBase Box72._polydata
 connect Box92.MeshBase Box37.polydata
 connect Box81.Widget Box08.Widget2
 connect Box94.BoxChange Box37.boxexecute
-connect Box77.BoxChange Box94.BoxExecute
 connect Box71.Out Box96.wxVtkBaseView
 connect Box96.vtkRenderer Box66.In
 connect Box37.widget Box79.Widget7
 connect Box48.widget Box38.Widget8
-connect Box97.Out Box45.Mesh
-connect Box97.Out Box93.Mesh
 connect Box43.Widget Box44.Widget1
 connect Box78.Widget Box98.Widget2
 connect Box80.Widget Box98.Widget4
@@ -292,7 +325,6 @@ connect Box107.Out Box102.Border
 connect Box106.OutStart Box110.In1
 connect Box106.OutEnd Box110.In3
 connect Box110.Out Box102.Threshold
-connect Box105.Widget Box86.Widget5
 connect Box63.BoxChange Box111.In1
 connect Box31.BoxChange Box111.In3
 connect Box111.BoxChange Box62._execute
@@ -301,10 +333,8 @@ connect Box37.boxchange Box112.In3
 connect Box112.BoxChange Box72._execute
 connect Box113.BoxChange Box31.BoxExecute
 connect Box113.Out Box48.polydata
-connect Box113.Out Box77.In2
 connect Box113.Out Box62._polydata
 connect Box113.BoxChange Box48.boxexecute
-connect Box102.Out Box114.In
 connect Box114.Out Box113.In
 connect Box118.BoxChange Box113.BoxExecute
 connect Box108.BoxChange Box118.In3
@@ -322,10 +352,43 @@ connect Box107.Widget Box105.Widget6
 connect Box106.BoxChange Box122.BoxExecute
 connect Box122.Widget Box105.Widget7
 connect Box102.Out Box122.In
-connect Box77.Out Box123.In
-connect Box123.Out Box97.In
 connect Box42.Widget Box124.Widget1
 connect Box124.Widget Box82.Widget4
+connect Box105.Widget Box125.Widget2
+connect Box86.Widget Box126.Widget2
+connect Box125.Widget Box126.Widget4
+connect Box126.Widget Box38.Widget2
+connect Box67.Out Box127.InPolyData
+connect Box68.Spacing Box128.Spacing
+connect Box68.TypeName Box128.OutputFormat
+connect Box68.Size Box128.Dimensions
+connect Box128.Out Box127.InImage
+connect Box127.Out Box129.In1
+connect Box102.Out Box129.In2
+connect Box129.Out Box130.In
+connect Box132.Out Box131.In
+connect Box130.Out Box132.In
+connect Box131.Out Box133.In
+connect Box53.BoxChange Box133.BoxExecute
+connect Box133.Out Box93.Mesh
+connect Box133.Out Box45.Mesh
+connect Box133.BoxChange Box94.BoxExecute
+connect Box133.BoxChange Box93.BoxExecute
+connect Box78.Out Box134.In
+connect Box134.Out Box135.In
+connect Box135.Out Box129.Operation
+connect Box134.Out Box136.In
+connect Box136.Out Box130.Lower
+connect Box102.Out Box137.In0
+connect Box137.Out Box138.In
+connect Box68.TypeName Box139.OutputFormat
+connect Box68.Spacing Box139.Spacing
+connect Box68.Size Box139.Dimensions
+connect Box139.Out Box138.ErrorValue
+connect Box138.Out Box114.In
+connect Box53.BoxChange Box127.BoxExecute
+connect Box35.Out Box140.in
+connect Box140.widget Box125.Widget3
 
 # Complex input ports
 input point showNpoints.In " "