VTK数据格式

来源:互联网 发布:淘宝ie8版本过低 编辑:程序博客网 时间:2024/05/17 04:14

VTK的数据格式包括:


  • Data Types:
    • polygonal data (points, lines, polygons, triangle strips)
    • images and volumes (i.e., structured point datasets)
    • structured grids (e.g., finite difference grids)
    • unstructured grids (e.g, finite element meshes)
    • unstructured points
    • rectilinear grids
    • hierarchical grids (e.g., AMR)
    • generic datasets (user writes their own adaptor into arbitrary dataset)
  • Cell Types:
    • vertex, poly-vertex
    • line, poly-line
    • triangle
    • triangle strip
    • pixel
    • quadrilateral
    • polygon
    • tetrahedron
    • voxel
    • hexahedron
    • wedge
    • pyramid
    • quadratic edges, triangles, quads, tetrahedra, hex, pyramids, wedges
    • generic adaptors to arbitrary cell types
  • Attribute Types:
    • scalars (single valued plus grayscale, grayscale-alpha, rgb, and rgb-alpha).
    • vectors
    • 3x3 tensors
    • normals
    • texture coordinates (1-3D)
    • tables
    • trees
    • graphs
    • field data (arbitrary arrays)

这里使用vtkAppendFilter生成unstructured grid,当将其存储为STL文件时,UsevtkTriangleFilter to convert polygons to triangles.


0 0