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 # ----------------------------------
7 # ----------------------
12 include creaMaracasVisu
17 description "Description ??"
20 new vtk:LoadHola Box02
22 new vtk:MarchingCubes Box03
23 set Box03.Value "2039"
25 new creaMaracasVisu:ViewerNV Box05
27 new vtk:PolyDataToActor Box06
29 new wx:LayoutSplit Box07
30 set Box07.Orientation "H"
32 new wx:LayoutLine Box08
34 new creaVtk:PointPicker Box10
35 set Box10.TypeEvent "2"
37 new wx:OutputText Box12
38 set Box12.Title "Normals"
40 new creaVtk:PolyDataNormals Box13
42 new wx:OutputText Box14
43 set Box14.Title "Point"
45 new creaVtk:MeshReduction_DecimatePro Box16
46 set Box16.TargetReduction "0.9"
48 new wx:OutputText Box17
51 connect Box02.Out Box03.In
53 connect Box02.Out Box05.In
55 connect Box05.Renderer1 Box06.Renderer
57 connect Box05.Widget Box07.Widget2
59 connect Box08.Widget Box07.Widget1
61 connect Box05.Renderer1 Box10.Renderer
63 connect Box10.Normal Box12.In
65 connect Box10.BoxChange Box12.BoxExecute
67 connect Box06.Out Box10.Prop3D
69 connect Box13.Out Box06.In
71 connect Box10.Point Box14.In
73 connect Box10.BoxChange Box14.BoxExecute
75 connect Box14.Widget Box08.Widget5
77 connect Box03.Out Box16.In
79 connect Box16.Out Box13.In
81 connect Box12.Widget Box08.Widget7
83 connect Box17.Widget Box08.Widget3