1 # ----------------------------------
2 # - BBTKGEditor v 1.4 BBS BlackBox Script (Complex Box)
3 # - bbIsoSurfaceExtractor.bbs
4 # ----------------------------------
11 define IsoSurfaceExtractor vtk
13 author "j p r at creatis.univ-lyon1.fr"
14 description "Extracts an iso-surface of a 3D image and creates a vtkProp3D object to insert into a 3D scene (e.g. a Viewer3D)"
16 category "3D object creator"
18 new vtk:MarchingCubes mc
20 new vtk:PolyDataToActor polydatatoactor
22 new std:MultipleInputs Box03
23 set Box03.BoxProcessMode "reactive"
25 new std:MagicBox Box04
28 connect mc.Out polydatatoactor.In
29 connect Box03.BoxChange polydatatoactor.BoxExecute
30 connect Box04.Out mc.Active
31 connect Box04.Out polydatatoactor.Active
35 input Isovalue mc.Value " "
36 input Opacity polydatatoactor.Opacity " "
37 input Colour polydatatoactor.Colour " "
38 input Renderer polydatatoactor.Renderer " "
39 input Transform polydatatoactor.Transform " "
40 input BoxExecute Box03.In1 " "
41 input active Box04.In " "
43 # Complex output ports
44 output Out polydatatoactor.Out " "