北京理工大学 | 李明健
VTK 中,单元的类型是枚举,具体单元类型编号如下:
x1typedef enum
2{
3 // Linear cells
4 VTK_EMPTY_CELL = 0,
5 VTK_VERTEX = 1,
6 VTK_POLY_VERTEX = 2,
7 VTK_LINE = 3,
8 VTK_POLY_LINE = 4,
9 VTK_TRIANGLE = 5,
10 VTK_TRIANGLE_STRIP = 6,
11 VTK_POLYGON = 7,
12 VTK_PIXEL = 8,
13 VTK_QUAD = 9,
14 VTK_TETRA = 10,
15 VTK_VOXEL = 11,
16 VTK_HEXAHEDRON = 12,
17 VTK_WEDGE = 13,
18 VTK_PYRAMID = 14,
19 VTK_PENTAGONAL_PRISM = 15,
20 VTK_HEXAGONAL_PRISM = 16,
21
22 // Quadratic, isoparametric cells
23 VTK_QUADRATIC_EDGE = 21,
24 VTK_QUADRATIC_TRIANGLE = 22,
25 VTK_QUADRATIC_QUAD = 23,
26 VTK_QUADRATIC_POLYGON = 36,
27 VTK_QUADRATIC_TETRA = 24,
28 VTK_QUADRATIC_HEXAHEDRON = 25,
29 VTK_QUADRATIC_WEDGE = 26,
30 VTK_QUADRATIC_PYRAMID = 27,
31 VTK_BIQUADRATIC_QUAD = 28,
32 VTK_TRIQUADRATIC_HEXAHEDRON = 29,
33 VTK_TRIQUADRATIC_PYRAMID = 37,
34 VTK_QUADRATIC_LINEAR_QUAD = 30,
35 VTK_QUADRATIC_LINEAR_WEDGE = 31,
36 VTK_BIQUADRATIC_QUADRATIC_WEDGE = 32,
37 VTK_BIQUADRATIC_QUADRATIC_HEXAHEDRON = 33,
38 VTK_BIQUADRATIC_TRIANGLE = 34,
39
40 // Cubic, isoparametric cell
41 VTK_CUBIC_LINE = 35,
42
43 // Special class of cells formed by convex group of points
44 VTK_CONVEX_POINT_SET = 41,
45
46 // Polyhedron cell (consisting of polygonal faces)
47 VTK_POLYHEDRON = 42,
48
49 // Higher order cells in parametric form
50 VTK_PARAMETRIC_CURVE = 51,
51 VTK_PARAMETRIC_SURFACE = 52,
52 VTK_PARAMETRIC_TRI_SURFACE = 53,
53 VTK_PARAMETRIC_QUAD_SURFACE = 54,
54 VTK_PARAMETRIC_TETRA_REGION = 55,
55 VTK_PARAMETRIC_HEX_REGION = 56,
56
57 // Higher order cells
58 VTK_HIGHER_ORDER_EDGE = 60,
59 VTK_HIGHER_ORDER_TRIANGLE = 61,
60 VTK_HIGHER_ORDER_QUAD = 62,
61 VTK_HIGHER_ORDER_POLYGON = 63,
62 VTK_HIGHER_ORDER_TETRAHEDRON = 64,
63 VTK_HIGHER_ORDER_WEDGE = 65,
64 VTK_HIGHER_ORDER_PYRAMID = 66,
65 VTK_HIGHER_ORDER_HEXAHEDRON = 67,
66
67 // Arbitrary order Lagrange elements (formulated separated from generic higher order cells)
68 VTK_LAGRANGE_CURVE = 68,
69 VTK_LAGRANGE_TRIANGLE = 69,
70 VTK_LAGRANGE_QUADRILATERAL = 70,
71 VTK_LAGRANGE_TETRAHEDRON = 71,
72 VTK_LAGRANGE_HEXAHEDRON = 72,
73 VTK_LAGRANGE_WEDGE = 73,
74 VTK_LAGRANGE_PYRAMID = 74,
75
76 // Arbitrary order Bezier elements (formulated separated from generic higher order cells)
77 VTK_BEZIER_CURVE = 75,
78 VTK_BEZIER_TRIANGLE = 76,
79 VTK_BEZIER_QUADRILATERAL = 77,
80 VTK_BEZIER_TETRAHEDRON = 78,
81 VTK_BEZIER_HEXAHEDRON = 79,
82 VTK_BEZIER_WEDGE = 80,
83 VTK_BEZIER_PYRAMID = 81,
84}
具体输出时,可根据需要选择类型,输入整型即可。常用的包括点 VTK_VERTEX = 1,四边形 VTK_QUAD = 9, 六面体 VTK_HEXAHEDRON = 12 等。