]> Creatis software - bbtk.git/blob - packages/vtk/bbs/boxes/bbIsoSurfaceExtractor.bbs
no message
[bbtk.git] / packages / vtk / bbs / boxes / bbIsoSurfaceExtractor.bbs
1 include std
2 include vtk
3
4 # --- Box Description ---
5 define IsoSurfaceExtractor vtk
6
7   description "Extracts an iso-surface of a 3D image and creates a vtkProp3D object to insert into a 3D scene (e.g. a Viewer3D)" 
8   author "j p r at creatis.univ-lyon1.fr"
9   category "3D object creator"
10 # ---                ---
11
12   new MarchingCubes   mc
13   new PolyDataToActor polydatatoactor   
14     connect mc.Out polydatatoactor.In
15
16   new MagicBox  mb
17    connect mb.BoxChange mc.BoxExecute
18    connect mb.BoxChange polydatatoactor.BoxExecute
19   
20 # ---                ---
21
22   input In        mc.In              "vtkImageData"
23   input Isovalue  mc.Value           "Isovalue"
24   input Opacity   polydatatoactor.Opacity   "Opacity"  
25   input Colour    polydatatoactor.Colour    "R G B"
26   input Renderer  polydatatoactor.Renderer  "3D scene in which to insert the surface"
27   input Transform polydatatoactor.Transform "Linear Transform (4x4 homogeneous)"     
28   input BoxExecute mb.BoxExecute "BoxExecute"     
29     
30
31   output Out polydatatoactor.Out "Extracted iso-surface (as a vtkProp3D *)"
32
33 endefine