description "Volume rendering example" author "laurent.guigues at creatis.insa-lyon.fr" category "example" include vtk load wxvtk new LoadHola reader new PiecewiseFunction color new PiecewiseFunction opacity new VolumeRenderer renderer new Viewer3D viewer connect reader.Out renderer.In connect color.Out renderer.ColorFunction connect opacity.Out renderer.OpacityFunction connect renderer.Out viewer.In1 load std set color.X "0 500 1000" set color.Y "0 0.01 1" set opacity.X "0 500 1000" set opacity.Y "0 0.01 0.1" exec viewer