Scien&fic Data File Formats Han-Wei Shen The Ohio - - PowerPoint PPT Presentation
Scien&fic Data File Formats Han-Wei Shen The Ohio - - PowerPoint PPT Presentation
Scien&fic Data File Formats Han-Wei Shen The Ohio State University Scien&fic File Format Common scien&fic data file formats VTK
Scien&fic ¡File ¡Format ¡
- Common ¡scien&fic ¡data ¡file ¡formats ¡
– VTK ¡ ¡ – NetCDF ¡ ¡ ¡ – Plot3D ¡ ¡
- Similar ¡conceptual ¡data ¡models, ¡but ¡with ¡different ¡
– organiza&ons ¡for ¡storing ¡domain ¡structures, ¡aKributes, ¡and ¡ meta-‑data ¡ ¡ – Degrees ¡of ¡extensibility ¡to ¡store ¡one, ¡mul&ple, ¡or ¡groups ¡of ¡ data ¡objects ¡ – Applica&on ¡Program ¡Interfaces ¡(API) ¡to ¡read/write ¡the ¡data ¡
Scien&fic ¡File ¡Format ¡
- Common ¡scien&fic ¡data ¡file ¡formats ¡
– VTK ¡ ¡ – NetCDF ¡ ¡ ¡ – Plot3D ¡ ¡
- Similar ¡conceptual ¡data ¡models, ¡but ¡with ¡different ¡
– organiza&ons ¡for ¡storing ¡domain ¡structures, ¡aKributes, ¡and ¡ meta-‑data ¡ ¡ – Degrees ¡of ¡extensibility ¡to ¡store ¡one, ¡mul&ple, ¡or ¡groups ¡of ¡ data ¡objects ¡ – Applica&on ¡Program ¡Interfaces ¡(API) ¡to ¡read/write ¡the ¡data ¡
Scien&fic ¡File ¡Format ¡
- Common ¡scien&fic ¡data ¡file ¡formats ¡
– VTK ¡ ¡ – NetCDF ¡ ¡ ¡ – Plot3D ¡ ¡
- Similar ¡conceptual ¡data ¡models, ¡but ¡with ¡different ¡
– organiza&ons ¡for ¡storing ¡domain ¡structures, ¡aKributes, ¡and ¡ meta-‑data ¡ ¡ – Degrees ¡of ¡extensibility ¡to ¡store ¡one, ¡mul&ple, ¡or ¡groups ¡of ¡ data ¡objects ¡ – Applica&on ¡Program ¡Interfaces ¡(API) ¡to ¡read/write ¡the ¡data ¡
Scien&fic ¡File ¡Format ¡
- Common ¡scien&fic ¡data ¡file ¡formats ¡
– VTK ¡ ¡ – NetCDF ¡ ¡ ¡ – Plot3D ¡ ¡
- Similar ¡conceptual ¡data ¡models, ¡but ¡with ¡different ¡
– organiza&ons ¡for ¡storing ¡domain ¡structures, ¡aKributes, ¡and ¡ meta-‑data ¡ ¡ – degrees ¡of ¡extensibility ¡to ¡store ¡one, ¡mul&ple, ¡or ¡groups ¡of ¡ data ¡objects ¡ – Applica&on ¡Program ¡Interfaces ¡(API) ¡to ¡read/write ¡the ¡data ¡
The ¡Visualiza&on ¡Toolkit ¡(VTK) ¡
- The ¡Visualiza&on ¡Toolkit ¡(VTK) ¡is ¡an ¡open-‑source, ¡freely ¡
available ¡soTware ¡system ¡for ¡visualiza&on, ¡3D ¡computer ¡ graphics, ¡and ¡image ¡processing ¡
- Produced ¡by ¡the ¡company ¡Kitware ¡(www.kitware.com) ¡
VTK ¡Simple ¡Legacy ¡Format ¡
- Contains ¡two ¡different ¡styles: ¡Legacy ¡and ¡XML ¡
MyFile.vtk ¡
File ¡version ¡and ¡iden-fier ¡
# ¡vtkDataFile ¡Version ¡x,x ¡
Header: ¡comment, ¡256 ¡char ¡max ¡
This ¡is ¡where ¡I ¡put ¡my ¡comments ¡\n ¡ ¡
Type: ¡type ¡of ¡data ¡ ¡
ASCII ¡ ¡(or ¡ ¡BINARY) ¡
Structure: ¡describes ¡domain ¡ ¡
Structure ¡ ¡ … ¡(more ¡in ¡the ¡following ¡slides) ¡
ABributes ¡
… ¡(more ¡in ¡the ¡following ¡slides) ¡
VTK ¡Simple ¡Legacy ¡Format ¡
- Contains ¡two ¡different ¡style: ¡Legacy ¡and ¡XML ¡
MyFile.vtk ¡
File ¡version ¡and ¡iden-fier ¡
# ¡vtkDataFile ¡Version ¡x,x ¡
Header: ¡comment, ¡256 ¡char ¡max ¡
This ¡is ¡where ¡I ¡put ¡my ¡comments ¡\n ¡ ¡
Type: ¡type ¡of ¡data ¡ ¡
ASCII ¡ ¡(or ¡ ¡BINARY) ¡
Structure: ¡describes ¡domain ¡ ¡
Structure ¡ ¡ … ¡(more ¡in ¡the ¡following ¡slides) ¡
ABributes ¡
… ¡(more ¡in ¡the ¡following ¡slides) ¡
VTK ¡Simple ¡Legacy ¡Format ¡
- Contains ¡two ¡different ¡style: ¡Legacy ¡and ¡XML ¡
MyFile.vtk ¡
File ¡version ¡and ¡iden-fier ¡
# ¡vtkDataFile ¡Version ¡x,x ¡
Header: ¡comment, ¡256 ¡char ¡max ¡
This ¡is ¡where ¡I ¡put ¡my ¡comments ¡\n ¡ ¡
Type: ¡type ¡of ¡data ¡ ¡
ASCII ¡ ¡(or ¡ ¡BINARY) ¡
Structure: ¡describes ¡domain ¡ ¡
Structure ¡ ¡ … ¡(more ¡in ¡the ¡following ¡slides) ¡
ABributes ¡
… ¡(more ¡in ¡the ¡following ¡slides) ¡
VTK ¡Simple ¡Legacy ¡Format ¡
- Contains ¡two ¡different ¡style: ¡Legacy ¡and ¡XML ¡
MyFile.vtk ¡
File ¡version ¡and ¡iden-fier ¡
# ¡vtkDataFile ¡Version ¡x,x ¡
Header: ¡comment, ¡256 ¡char ¡max ¡
This ¡is ¡where ¡I ¡put ¡my ¡comments ¡\n ¡ ¡
Type: ¡type ¡of ¡data ¡ ¡
ASCII ¡ ¡(or ¡ ¡BINARY) ¡
Structure: ¡describes ¡domain ¡ ¡
Structure ¡ ¡ … ¡(more ¡in ¡the ¡following ¡slides) ¡
ABributes ¡
… ¡(more ¡in ¡the ¡following ¡slides) ¡
VTK ¡Simple ¡Legacy ¡Format ¡
- Contains ¡two ¡different ¡style: ¡Legacy ¡and ¡XML ¡
MyFile.vtk ¡
File ¡version ¡and ¡iden-fier ¡
# ¡vtkDataFile ¡Version ¡x,x ¡
Header: ¡comment, ¡256 ¡char ¡max ¡
This ¡is ¡where ¡I ¡put ¡my ¡comments ¡\n ¡ ¡
Type: ¡type ¡of ¡data ¡ ¡
ASCII ¡ ¡(or ¡ ¡BINARY) ¡
Structure: ¡describes ¡domain ¡ ¡
Structure ¡ ¡ … ¡(more ¡in ¡the ¡following ¡slides) ¡
ABributes ¡
… ¡(more ¡in ¡the ¡following ¡slides) ¡
Specifying ¡Domain ¡Structure ¡
- Specifies ¡the ¡structure ¡of ¡the ¡domain ¡ ¡
¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡DATASET ¡STRUCTURED_POINTS ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡or ¡ ¡ ¡
¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡STRUCTURED_GRID ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡UNSTRUCTURED_GRID ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡RECTILINEAR_GRID ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡POLYDATA ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡FIELD ¡ ¡
Specifying ¡Domain ¡Structure ¡
- Specifies ¡the ¡structure ¡of ¡the ¡domain ¡ ¡
¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡DATASET ¡STRUCTURED_POINTS ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡or ¡ ¡ ¡
¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡STRUCTURED_GRID ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡UNSTRUCTURED_GRID ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡RECTILINEAR_GRID ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡POLYDATA ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡FIELD ¡ ¡
- Then ¡give ¡the ¡informa&on ¡related ¡to ¡the ¡type ¡of ¡the ¡
structure ¡
– Dimensions ¡ ¡ – Spacing ¡ – Coordinates ¡ – … ¡ ¡
- Specifies ¡the ¡structure ¡of ¡the ¡domain ¡ ¡
¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡DATASET ¡STRUCTURED_POINTS ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡or ¡ ¡ ¡
¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡STRUCTURED_GRID ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡UNSTRUCTURED_GRID ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡RECTILINEAR_GRID ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡POLYDATA ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡FIELD ¡ ¡
Specifying ¡Domain ¡Structure ¡
DATASET ¡STRUCTURED_POINTS ¡ DIMENSIONS ¡ ¡nx ¡ny ¡nz ¡ ORIGIN ¡X ¡Y ¡Z ¡ ¡ SPACING ¡Sx ¡Sy ¡Sz ¡ VTK ¡Structured ¡Point ¡Type ¡ ¡ nx ¡ ny ¡ nz ¡
(X,Y,Z) ¡
- Specifies ¡the ¡structure ¡of ¡the ¡domain ¡ ¡
¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡DATASET ¡STRUCTURED_POINTS ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡or ¡ ¡ ¡
¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡STRUCTURED_GRID ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡UNSTRUCTURED_GRID ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡RECTILINEAR_GRID ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡POLYDATA ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡FIELD ¡ ¡
Specifying ¡Domain ¡Structure ¡
DATASET ¡STRUCTURED_POINTS ¡ DIMENSIONS ¡ ¡nx ¡ny ¡nz ¡ ORIGIN ¡X ¡Y ¡Z ¡ ¡ SPACING ¡Sx ¡Sy ¡Sz ¡ VTK ¡Structured ¡Point ¡Type ¡ ¡ nx ¡ ny ¡ nz ¡
(X,Y,Z) ¡
- Specifies ¡the ¡structure ¡of ¡the ¡domain ¡ ¡
¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡DATASET ¡STRUCTURED_POINTS ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡or ¡ ¡ ¡
¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡STRUCTURED_GRID ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡UNSTRUCTURED_GRID ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡RECTILINEAR_GRID ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡POLYDATA ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡FIELD ¡ ¡
Specifying ¡Domain ¡Structure ¡
DATASET ¡STRUCTURED_POINTS ¡ DIMENSIONS ¡ ¡nx ¡ny ¡nz ¡ ORIGIN ¡X ¡Y ¡Z ¡ ¡ SPACING ¡Sx ¡Sy ¡Sz ¡ VTK ¡Structured ¡Point ¡Type ¡ ¡ nx ¡ ny ¡ nz ¡
(X,Y,Z) ¡
- Specifies ¡the ¡structure ¡of ¡the ¡domain ¡ ¡
¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡DATASET ¡STRUCTURED_POINTS ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡or ¡ ¡ ¡
¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡STRUCTURED_GRID ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡UNSTRUCTURED_GRID ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡RECTILINEAR_GRID ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡POLYDATA ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡FIELD ¡ ¡
Specifying ¡Domain ¡Structure ¡
DATASET ¡STRUCTURED_POINTS ¡ DIMENSIONS ¡ ¡nx ¡ny ¡nz ¡ ORIGIN ¡X ¡Y ¡Z ¡ ¡ SPACING ¡Sx ¡Sy ¡Sz ¡ VTK ¡Structured ¡Point ¡Type ¡ ¡ nx ¡ ny ¡ nz ¡
(X,Y,Z) ¡
Sx ¡ Sy ¡ Sz ¡
- Specifies ¡the ¡structure ¡of ¡the ¡domain ¡ ¡
¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡DATASET ¡STRUCTURED_POINTS ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡or ¡ ¡ ¡
¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡STRUCTURED_GRID ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡UNSTRUCTURED_GRID ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡RECTILINEAR_GRID ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡POLYDATA ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡FIELD ¡ ¡
Specifying ¡Domain ¡Structure ¡
VTK ¡Rec&linear ¡Grid ¡Type ¡ ¡
DATASET ¡RECTILINEAR_POINTS ¡ DIMENSIONS ¡ ¡nx ¡ny ¡nz ¡ X_COORDINATES ¡nX ¡dataType ¡ ¡ x0 ¡ ¡x1 ¡ ¡… ¡xnx-‑1 ¡ Y_COORDINATES ¡ny ¡dataType ¡ ¡ y0 ¡ ¡y1 ¡ ¡… ¡ynx-‑1 ¡ Z_COORDINATES ¡nz ¡dataType ¡ ¡ z0 ¡ ¡z1 ¡ ¡… ¡znx-‑1 ¡
nx ¡ ny ¡ nz ¡
X0 ¡X1 ¡X2 ¡X3 ¡X4 ¡… ¡ Z0 ¡ ¡ Z1 ¡ Z2 ¡ Z3 ¡ Z4 ¡… ¡
Specifying ¡Domain ¡Structure ¡
- Specifies ¡the ¡structure ¡of ¡the ¡domain ¡ ¡
¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡DATASET ¡STRUCTURED_POINTS ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡or ¡ ¡ ¡
¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡STRUCTURED_GRID ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡UNSTRUCTURED_GRID ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡RECTILINEAR_GRID ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡POLYDATA ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡FIELD ¡ ¡
VTK ¡Unstructured ¡Grid ¡Type ¡ ¡ DATASET ¡UNSTRUCTURE_GRID ¡ ¡ POINTS ¡n ¡dataType ¡ P0x ¡P0y ¡P0z ¡ ¡P1x ¡P1y ¡P1z ¡
… ¡
P(n-‑1)x ¡P(n-‑1)y ¡P(n-‑1)z ¡ CELLS ¡n ¡size ¡ numPoints0 ¡i,j,k,l,…. ¡ ¡(first ¡cell) ¡ numPoints1 ¡i,j,k,l ¡… ¡ ¡ ¡(second ¡cell) ¡
… ¡
numPointsn-‑1 ¡i,j,k,l,…. ¡(n-‑1th ¡cell) ¡ CELL_TYPES ¡n ¡ ¡ Type0 ¡ Type1 ¡ Type2 ¡ … ¡ Typen ¡
dataType ¡can ¡be ¡unsigned_char, ¡char, ¡ unsigned_short, ¡short, ¡unsigned_int, ¡int, ¡ unsined_long, ¡long, ¡float, ¡double ¡
VTK ¡Cell ¡Types ¡
VTK ¡Cell ¡Types ¡(cont’d) ¡
VTK ¡Data ¡AKributes ¡
- AKributes: ¡the ¡values ¡stored ¡at ¡the ¡grid ¡points ¡ ¡
- Supported ¡types: ¡ ¡
– ¡scalars, ¡vectors, ¡3x3 ¡tensors, ¡normals, ¡texture ¡ coordinates ¡(1/2/3D), ¡and ¡fields. ¡ ¡
- Format: ¡
a$ributeType ¡ SCALARS ¡ VECTORS ¡ TENSORS ¡ NORMALS ¡ TEXTURE_COORDINATES ¡ dataName ¡ Any ¡name ¡you ¡like ¡ dataType ¡ unsigned_char ¡ char ¡ unsigned_short ¡ ¡ short ¡ ¡ unsigned_int ¡ ¡ int ¡ ¡ unsined_long ¡ ¡long ¡ ¡float ¡ ¡ double ¡ a$ributeValues ¡ Described ¡in ¡the ¡following ¡ ¡ slides ¡
VTK ¡Data ¡AKributes ¡
- AKributes: ¡the ¡values ¡stored ¡at ¡the ¡grid ¡points ¡ ¡
- Supported ¡types: ¡ ¡
– ¡scalars, ¡vectors, ¡normals, ¡texture ¡coordinates ¡ (1/2/3D), ¡3x3 ¡tensors, ¡and ¡fields. ¡ ¡
- Scalar ¡AKribute ¡
SCALARS ¡ ¡dataName ¡ ¡dataType ¡ ¡numComp ¡ LOOKUP_TABLE ¡default ¡ ¡ S0 ¡ S1 ¡ … ¡ Sn-‑1 ¡ Op&onal, ¡default ¡ ¡= ¡1 ¡
VTK ¡Data ¡AKributes ¡
- AKributes: ¡the ¡values ¡stored ¡at ¡the ¡grid ¡points ¡ ¡
- Supported ¡types: ¡ ¡
– ¡scalars ¡(with ¡op&onal ¡RGB ¡lookup ¡table) ¡ vectors, ¡normals, ¡texture ¡coordinates ¡ (1/2/3D), ¡3x3 ¡tensors, ¡and ¡fields. ¡ ¡
- Vector ¡aKribute ¡
VECTORS ¡dataName ¡dataType ¡ ¡ v0x ¡v0y ¡v0z ¡ v1x ¡v1y ¡v1z ¡ … ¡ V(n-‑1)x ¡v(n-‑1)y ¡v(n-‑1)z ¡ n ¡3 ¡x ¡3 ¡tensors ¡
- Tensors ¡aKribute ¡ ¡
TENSORS ¡dataName ¡dataType ¡ ¡ t00 ¡t01 ¡t02 ¡ t10 ¡t11 ¡t12 ¡ t20 ¡t21 ¡t22 ¡
VTK ¡Data ¡AKributes ¡
- AKributes: ¡the ¡values ¡stored ¡at ¡the ¡grid ¡points ¡ ¡
- Supported ¡types: ¡ ¡
– ¡scalars ¡(with ¡op&onal ¡RGB ¡lookup ¡table) ¡ vectors, ¡normals, ¡texture ¡coordinates ¡ (1/2/3D), ¡3x3 ¡tensors, ¡and ¡fields. ¡ ¡
- Normals ¡
NORMALS ¡dataName ¡ ¡dataType ¡ ¡ N0x ¡n0y ¡n0z ¡ n1x ¡n1y ¡n1z ¡ … ¡ n(n-‑1)x ¡n(n-‑1)y ¡n(n-‑1)z ¡
- Texture ¡Coordinates ¡ ¡ ¡
TEXTURE_COORDINDATES ¡dataName ¡dim ¡dataType ¡ ¡ t00 ¡t01 ¡t0(dim-‑1) ¡ t10 ¡t11 ¡t1(dim-‑1) ¡ … ¡ T(n-‑1)0 ¡t(n-‑1)1 ¡t(n-‑1)(dim-‑1) ¡
Dimensions ¡of ¡the ¡texture ¡