]> Creatis software - creaVtk.git/blob - bbtk_creaVtk_PKG/bbs/appli/exampleFillHoles.bbs
#3468 cutter stripper fillholes box
[creaVtk.git] / bbtk_creaVtk_PKG / bbs / appli / exampleFillHoles.bbs
1 # ----------------------------------
2 # - BBTKGEditor v 1.4 BBS BlackBox Script
3 # - Creatis/C11/creatools_source/creaVtk/bbtk_creaVtk_PKG/bbs/appli/exampleFillHoles.bbs
4 # ----------------------------------
5
6 # BBTK GEditor Script
7 # ----------------------
8
9 include std
10 include itkvtk
11 include creaVtk
12 include creaMaracasVisu
13 include vtk
14 include wx
15 include std
16
17 author "Author ??"
18 description "Description ??"
19 category "<VOID>"
20
21 new creaVtk:Stripper Box03
22
23 new creaMaracasVisu:ViewerNV Box05
24
25 new vtk:LoadHola Box06
26
27 new creaVtk:OutputWindow Box08
28
29 new wx:LayoutSplit Box09
30   set Box09.Orientation "H"
31
32 new vtk:PolyDataToActor Box11
33   set Box11.Representation "2"
34
35 new vtk:UpdateRender Box12
36   set Box12.Active "true"
37
38 new vtk:SphereSource Box13
39   set Box13.PhiResolution "20"
40   set Box13.Radius "40"
41   set Box13.ThetaResolution "20"
42
43 new creaVtk:MeshCutByAxis Box14
44   set Box14.InsideVol "false"
45   set Box14.Point "0 0 0"
46   set Box14.Type "x"
47
48 new creaVtk:FillHolesFilter Box15
49   set Box15.HoleSize "500"
50
51 new vtk:PolyDataToActor Box16
52   set Box16.Colour "1 0 0"
53   set Box16.Representation "1"
54
55 new wx:Slider Box17
56   set Box17.In "100"
57   set Box17.Max "100"
58   set Box17.ReactiveOnTrack "true"
59
60 new std:Div Box18
61   set Box18.In2 "100"
62
63 new wx:LayoutLine Box19
64
65 new wx:Slider Box20
66   set Box20.In "100"
67   set Box20.Max "100"
68   set Box20.ReactiveOnTrack "true"
69
70 new std:Div Box21
71   set Box21.In2 "100"
72
73 new std:MultipleInputs Box22
74
75
76 connect Box06.Out Box05.In
77
78 connect Box05.Widget Box09.Widget2
79
80 connect Box05.Renderer1 Box11.Renderer
81
82 connect Box05.Renderer1 Box12.Renderer
83
84 connect Box13.Out Box14.In
85
86 connect Box14.Out Box11.In
87
88 connect Box14.Out Box15.In
89
90 connect Box15.Out Box16.In
91
92 connect Box05.Renderer1 Box16.Renderer
93
94 connect Box11.BoxChange Box16.BoxExecute
95
96 connect Box16.BoxChange Box12.BoxExecute
97
98 connect Box17.Out Box18.In1
99
100 connect Box17.Widget Box19.Widget1
101
102 connect Box18.Out Box11.Opacity
103
104 connect Box20.Out Box21.In1
105
106 connect Box20.Widget Box19.Widget3
107
108 connect Box19.Widget Box09.Widget1
109
110 connect Box21.Out Box16.Opacity
111
112 connect Box20.BoxChange Box22.In2
113
114 connect Box17.BoxChange Box22.In1
115
116 connect Box22.BoxChange Box11.BoxExecute
117
118
119
120 # Complex input ports
121 exec Box08
122 exec Box09