Difference between revisions of "User:Tohline/vtk/Examples/LegacyCubeG"

From VistrailsWiki
Jump to navigation Jump to search
(Insert ascii input file along with pipeline image)
(→‎Example Input Files & VisTrails Pipelines: Insert introductory paragraph)
Line 1: Line 1:
=Example Input Files & VisTrails Pipelines=
=Example Input Files & VisTrails Pipelines=
{{LSU_HBook_header}}
{{LSU_HBook_header}}
This is one example of an input data file that we have successfully used to generate a useful interactive rendering within VisTrails.  The file illustrates VTK's ''Simple Legacy Format'' and the POLYDATA dataset format.  To aid in implementation, we present the full ascii dataset, the resulting rendered image, and a screen shot of the VisTrails pipeline that was used to generate the image.  This example (G) is very similar to the "Cube example" that is provided in §15.3 of the [http://www.kitware.com/products/books/vtkguide.html ''VTK User's Guide,'' authored and published by Kitware, Inc.] (see especially pp. 331-332) and is one of many "simple cube" examples that have been discussed in detail in our [[User:Tohline/vtk/SimpleCubeTutorial#Simple_Cube_Tutorial|accompanying ''Simple Cube Tutorial'']].  A list of other example input data files [[User:Tohline/vtk/SimpleCubeTutorial#Other_Example_Input_Files_and_VisTrails_Pipelines|is provided near the end]] of the tutorial.
==Legacy Cube Example G==
==Legacy Cube Example G==


Line 67: Line 70:
</div>
</div>


 
=Related Discussions=
* [[User:Tohline/vtk/SimpleCubeTutorial#Other_Example_Input_Files_and_VisTrails_Pipelines|Other examples]] of properly formatted input data files
* [[User:Tohline/vtk/SimpleCubeTutorial#Simple_Cube_Tutorial|Simple Cube Tutorial]]
** [[User:Tohline/vtk/SimpleCubeTutorial/CubeDetails#Cube_Definition_Details|Specifying Points (Vertices) and Polygons]] of a cube
** [[User:Tohline/vtk/ColorLookupTablea#Color_Lookup_Tables|Defining Color Lookup Tables]]


=Related Discussions=
=Related Discussions=

Revision as of 16:18, 18 April 2014

Example Input Files & VisTrails Pipelines

Whitworth's (1981) Isothermal Free-Energy Surface
|   Tiled Menu   |   Tables of Content   |  Banner Video   |  Tohline Home Page   |

This is one example of an input data file that we have successfully used to generate a useful interactive rendering within VisTrails. The file illustrates VTK's Simple Legacy Format and the POLYDATA dataset format. To aid in implementation, we present the full ascii dataset, the resulting rendered image, and a screen shot of the VisTrails pipeline that was used to generate the image. This example (G) is very similar to the "Cube example" that is provided in §15.3 of the VTK User's Guide, authored and published by Kitware, Inc. (see especially pp. 331-332) and is one of many "simple cube" examples that have been discussed in detail in our accompanying Simple Cube Tutorial. A list of other example input data files is provided near the end of the tutorial.

Legacy Cube Example G

# vtk DataFile Version 2.0
Cube example
ASCII
DATASET POLYDATA
POINTS 8 float
0.0 0.0 0.0
1.0 0.0 0.0
1.0 1.0 0.0
0.0 1.0 0.0
0.0 0.0 1.0
1.0 0.0 1.0
1.0 1.0 1.0
0.0 1.0 1.0
POLYGONS 6 30
4 0 1 2 3
4 4 5 6 7
4 0 1 5 4
4 2 3 7 6
4 0 4 7 3
4 1 2 6 5

CELL_DATA 6
SCALARS cell_scalars float 1
LOOKUP_TABLE my_table
0.14286
0.28571
0.42857
0.57143
0.71429
0.85714
NORMALS cell_normals float
0 0 1
0 0 1
0 -1 0
0 1 0
-1 0 0
1 0 0
LOOKUP_TABLE my_table 8
0.0 0.0 0.0 1.0
1.0 0.0 0.0 1.0
0.0 1.0 0.0 1.0
1.0 1.0 0.0 1.0
0.0 0.0 1.0 1.0
1.0 0.0 1.0 1.0
0.0 1.0 1.0 1.0
1.0 1.0 1.0 1.0
Simple Cube Example G
Simple Cube (Ex. G)

Related Discussions

Related Discussions