]> Creatis software - bbtk.git/commitdiff
add a 'bunny' reader
authorjean-pierre roux <jean-pierre.roux@creatis.insa-lyon.fr>
Wed, 4 May 2011 09:46:39 +0000 (09:46 +0000)
committerjean-pierre roux <jean-pierre.roux@creatis.insa-lyon.fr>
Wed, 4 May 2011 09:46:39 +0000 (09:46 +0000)
packages/vtk/bbs/boxes/bbLoadBunny_vtkPolyData.bbs [new file with mode: 0644]

diff --git a/packages/vtk/bbs/boxes/bbLoadBunny_vtkPolyData.bbs b/packages/vtk/bbs/boxes/bbLoadBunny_vtkPolyData.bbs
new file mode 100644 (file)
index 0000000..5cca001
--- /dev/null
@@ -0,0 +1,18 @@
+load vtk
+include std/boxes/bbPrependPackageDataPath
+
+define LoadBunny_vtkPolyData vtk
+  description "Loads the mesh 'bunny.vtk'" 
+  author "jpr"
+  category "mesh;read/write"
+
+  new PolyDataReader reader
+  new PrependPackageDataPath ppdp
+  set ppdp.In "bunny.vtk"
+  set ppdp.Package "vtk"
+  connect ppdp.Out reader.In
+  output Out reader.Out "The poly data"
+  output FileName ppdp.Out "The path to the mesh to load"
+
+endefine