]> Creatis software - creaVtk.git/blob - bbtk_creaVtk_PKG/bbs/appli/exampleBooleanOperationPolyDataFilter.bbs
#3274 creaVtk Feature New Normal - BooleanOperationPolyDataFilter BoxWidget ClipPol...
[creaVtk.git] / bbtk_creaVtk_PKG / bbs / appli / exampleBooleanOperationPolyDataFilter.bbs
1 # ----------------------------------
2 # - BBTKGEditor v 1.4 BBS BlackBox Script
3 # - /home/davila/Creatis/C8/creatools_source/creaVtk/bbtk_creaVtk_PKG/bbs/appli/exampleBooleanOperationPolyDataFilter.bbs
4 # ----------------------------------
5
6 # BBTK GEditor Script
7 # ----------------------
8
9 include std
10 include itkvtk
11 include vtk
12 include creaMaracasVisu
13 include creaVtk
14 include wx
15
16 author "Author ??"
17 description "Description ??"
18 category "<VOID>"
19
20 new vtk:LoadHola Box00
21
22 new creaMaracasVisu:ViewerNV Box01
23
24 new creaVtk:BooleanOperationPolyDataFilter Box02
25   set Box02.Operation "2"
26
27 new vtk:SphereSource Box03
28   set Box03.CenterX "50"
29   set Box03.CenterY "50"
30   set Box03.CenterZ "50"
31   set Box03.Radius "10"
32
33 new vtk:SphereSource Box04
34   set Box04.CenterX "60"
35   set Box04.CenterY "60"
36   set Box04.CenterZ "60"
37   set Box04.Radius "15"
38
39 new wx:LayoutSplit Box05
40   set Box05.Orientation "H"
41
42 new wx:CommandButton Box06
43   set Box06.Label "Run"
44
45 new vtk:PolyDataToActor Box07
46
47
48 connect Box00.Out Box01.In
49
50 connect Box01.Widget Box05.Widget2
51
52 connect Box06.Widget Box05.Widget1
53
54 connect Box02.Out Box07.In
55
56 connect Box01.Renderer1 Box07.Renderer
57
58 connect Box06.BoxChange Box07.BoxExecute
59
60 connect Box04.Out Box02.In1
61
62 connect Box03.Out Box02.In2
63
64
65
66 # Complex input ports
67 exec Box05