]> Creatis software - creaVtk.git/blob - bbtk_creaVtk_PKG/bbs/appli/examplePolyDataNormals.bbs
#3486 PolyDataNormals box
[creaVtk.git] / bbtk_creaVtk_PKG / bbs / appli / examplePolyDataNormals.bbs
1 # ----------------------------------
2 # - BBTKGEditor v 1.5 BBS BlackBox Script
3 # - /Users/davila/Creatis/C11/creatools_source/creaVtk/bbtk_creaVtk_PKG/bbs/appli/examplePolyDataNormals.bbs
4 # ----------------------------------
5
6 # BBTK GEditor Script
7 # ----------------------
8
9 include std
10 include itkvtk
11 include vtk
12 include creaMaracasVisu
13 include wx
14 include creaVtk
15
16 author "Author ??"
17 description "Description ??"
18 category "<VOID>"
19
20 new vtk:LoadHola Box02
21
22 new vtk:MarchingCubes Box03
23   set Box03.Value "2039"
24
25 new creaMaracasVisu:ViewerNV Box05
26
27 new vtk:PolyDataToActor Box06
28
29 new wx:LayoutSplit Box07
30   set Box07.Orientation "H"
31
32 new wx:LayoutLine Box08
33
34 new creaVtk:PointPicker Box10
35   set Box10.TypeEvent "2"
36
37 new wx:OutputText Box12
38   set Box12.Title "Normals"
39
40 new creaVtk:PolyDataNormals Box13
41
42 new wx:OutputText Box14
43   set Box14.Title "Point"
44
45 new creaVtk:MeshReduction_DecimatePro Box16
46   set Box16.TargetReduction "0.9"
47
48 new wx:OutputText Box17
49
50
51 connect Box02.Out Box03.In
52
53 connect Box02.Out Box05.In
54
55 connect Box05.Renderer1 Box06.Renderer
56
57 connect Box05.Widget Box07.Widget2
58
59 connect Box08.Widget Box07.Widget1
60
61 connect Box05.Renderer1 Box10.Renderer
62
63 connect Box10.Normal Box12.In
64
65 connect Box10.BoxChange Box12.BoxExecute
66
67 connect Box06.Out Box10.Prop3D
68
69 connect Box13.Out Box06.In
70
71 connect Box10.Point Box14.In
72
73 connect Box10.BoxChange Box14.BoxExecute
74
75 connect Box14.Widget Box08.Widget5
76
77 connect Box03.Out Box16.In
78
79 connect Box16.Out Box13.In
80
81 connect Box12.Widget Box08.Widget7
82
83 connect Box17.Widget Box08.Widget3
84
85
86
87 # Complex input ports
88 exec Box07