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

From VistrailsWiki
Jump to navigation Jump to search
(→‎Example Input Files & VisTrails Pipelines: Insert introductory paragraph)
(Delete extraneous set of "Related Discussions" links)
 
Line 75: Line 75:
** [[User:Tohline/vtk/SimpleCubeTutorial/CubeDetails#Cube_Definition_Details|Specifying Points (Vertices) and Polygons]] of a cube
** [[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]]
** [[User:Tohline/vtk/ColorLookupTablea#Color_Lookup_Tables|Defining Color Lookup Tables]]
=Related Discussions=
* [[User:Tohline/vtk/Understanding#Understanding_vtk_Tools_Inside_VisTrails|Understanding vtk Tools Inside VisTrails]]
* [[User:Tohline/vtk/SimpleCubeTutorial/CubeDetails#Cube_Definition_Details|Cube Definition Details]]
* [[User:Tohline/vtk/ColorLookupTablea#Color_Lookup_Tables|Color Lookup Tables]]
* [http://www.bu.edu/tech/files/2010/10/VTK-Fall-2010.ppt Robert Putnam's (Boston University) powerpoint tutorial] -- includes a ''Structured_Points'' example, written in Simple Legacy Format

Latest revision as of 18:40, 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