# ---------------------------------- # - BBTKGEditor v 1.4 BBS BlackBox Script # - /home/davila/Creatis/C8/creatools_source/creaVtk/bbtk_creaVtk_PKG/bbs/appli/exampleBooleanOperationPolyDataFilter.bbs # ---------------------------------- # BBTK GEditor Script # ---------------------- include std include itkvtk include vtk include creaMaracasVisu include creaVtk include wx author "Author ??" description "Description ??" category "" new vtk:LoadHola Box00 new creaMaracasVisu:ViewerNV Box01 new creaVtk:BooleanOperationPolyDataFilter Box02 set Box02.Operation "2" new vtk:SphereSource Box03 set Box03.CenterX "50" set Box03.CenterY "50" set Box03.CenterZ "50" set Box03.Radius "10" new vtk:SphereSource Box04 set Box04.CenterX "60" set Box04.CenterY "60" set Box04.CenterZ "60" set Box04.Radius "15" new wx:LayoutSplit Box05 set Box05.Orientation "H" new wx:CommandButton Box06 set Box06.Label "Run" new vtk:PolyDataToActor Box07 connect Box00.Out Box01.In connect Box01.Widget Box05.Widget2 connect Box06.Widget Box05.Widget1 connect Box02.Out Box07.In connect Box01.Renderer1 Box07.Renderer connect Box06.BoxChange Box07.BoxExecute connect Box04.Out Box02.In1 connect Box03.Out Box02.In2 # Complex input ports exec Box05