Editing
Vtk/Examples/LegacyCubeG
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=Example Input Files & VisTrails Pipelines= <!-- {{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 [[vtk/SimpleCubeTutorial#Simple_Cube_Tutorial|accompanying ''Simple Cube Tutorial'']]. A list of other example input data files [[vtk/SimpleCubeTutorial#Other_Example_Input_Files_and_VisTrails_Pipelines|is provided near the end]] of the tutorial. ==Legacy Cube Example G== <div align="left"> <pre> # 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 </pre> </div> <div align="center"> <table border="2" align="center"> <tr> <td align="center" rowspan="1"> [[Image:LegacyExampleG_pipeline.png|right|thumb|400px|Simple Cube Example G]] </td> <td align="center"> [[Image:Screenshot08.png|right|thumb|200px|Simple Cube (Ex. G)]] </td> </tr> </table> </div> =Related Discussions= * [[vtk/SimpleCubeTutorial#Other_Example_Input_Files_and_VisTrails_Pipelines|Other examples]] of properly formatted input data files * [[vtk/SimpleCubeTutorial#Simple_Cube_Tutorial|Simple Cube Tutorial]] ** [[vtk/SimpleCubeTutorial/CubeDetails#Cube_Definition_Details|Specifying Points (Vertices) and Polygons]] of a cube ** [[vtk/ColorLookupTablea#Color_Lookup_Tables|Defining Color Lookup Tables]]
Summary:
Please note that all contributions to JETohlineWiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
JETohlineWiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Tiled Menu
Table of Contents
Old (VisTrails) Cover
Appendices
Variables & Parameters
Key Equations
Special Functions
Permissions
Formats
References
lsuPhys
Ramblings
Uploaded Images
Originals
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information