pub enum CellType {
Show 59 variants
Vertex = 1,
PolyVertex = 2,
Line = 3,
PolyLine = 4,
Triangle = 5,
TriangleStrip = 6,
Polygon = 7,
Pixel = 8,
Quad = 9,
Tetra = 10,
Voxel = 11,
Hexahedron = 12,
Wedge = 13,
Pyramid = 14,
QuadraticEdge = 21,
QuadraticTriangle = 22,
QuadraticQuad = 23,
QuadraticTetra = 24,
QuadraticHexahedron = 25,
QuadraticWedge = 26,
QuadraticPyramid = 27,
BiquadraticQuad = 28,
TriquadraticHexahedron = 29,
QuadraticLinearQuad = 30,
QuadraticLinearWedge = 31,
BiquadraticQuadraticWedge = 32,
BiquadraticQuadraticHexahedron = 33,
BiquadraticTriangle = 34,
CubicLine = 35,
ConvexPointSet = 41,
Polyhedron = 42,
ParametricCurve = 51,
ParametricSurface = 52,
ParametricTriSurface = 53,
ParametricQuadSurface = 54,
ParametricTetraRegion = 55,
ParametricHexRegion = 56,
HigherOrderEdge = 60,
HigherOrderTriangle = 61,
HigherOrderQuad = 62,
HigherOrderPolygon = 63,
HigherOrderTetrahedron = 64,
HigherOrderWedge = 65,
HigherOrderPyramid = 66,
HigherOrderHexahedron = 67,
LagrangeCurve = 68,
LagrangeTriangle = 69,
LagrangeQuadrilateral = 70,
LagrangeTetrahedron = 71,
LagrangeHexahedron = 72,
LagrangeWedge = 73,
LagrangePyramid = 74,
BezierCurve = 75,
BezierTriangle = 76,
BezierQuadrilateral = 77,
BezierTetrahedron = 78,
BezierHexahedron = 79,
BezierWedge = 80,
BezierPyramid = 81,
}
Expand description
This enum describes the types of Cells representable by VTK files.
These are explicitly written in UnstructuredGrid
s and some are referred to in PolyData
datasets. For more details on each of these types see, the VTK file
formats documentation.
Variants§
Vertex = 1
PolyVertex = 2
Line = 3
PolyLine = 4
Triangle = 5
TriangleStrip = 6
Polygon = 7
Pixel = 8
Quad = 9
Tetra = 10
Voxel = 11
Hexahedron = 12
Wedge = 13
Pyramid = 14
QuadraticEdge = 21
QuadraticTriangle = 22
QuadraticQuad = 23
QuadraticTetra = 24
QuadraticHexahedron = 25
QuadraticWedge = 26
QuadraticPyramid = 27
BiquadraticQuad = 28
TriquadraticHexahedron = 29
QuadraticLinearQuad = 30
QuadraticLinearWedge = 31
BiquadraticQuadraticWedge = 32
BiquadraticQuadraticHexahedron = 33
BiquadraticTriangle = 34
CubicLine = 35
ConvexPointSet = 41
Polyhedron = 42
ParametricCurve = 51
ParametricSurface = 52
ParametricTriSurface = 53
ParametricQuadSurface = 54
ParametricTetraRegion = 55
ParametricHexRegion = 56
HigherOrderEdge = 60
HigherOrderTriangle = 61
HigherOrderQuad = 62
HigherOrderPolygon = 63
HigherOrderTetrahedron = 64
HigherOrderWedge = 65
HigherOrderPyramid = 66
HigherOrderHexahedron = 67
LagrangeCurve = 68
LagrangeTriangle = 69
LagrangeQuadrilateral = 70
LagrangeTetrahedron = 71
LagrangeHexahedron = 72
LagrangeWedge = 73
LagrangePyramid = 74
BezierCurve = 75
BezierTriangle = 76
BezierQuadrilateral = 77
BezierTetrahedron = 78
BezierHexahedron = 79
BezierWedge = 80
BezierPyramid = 81
Trait Implementations§
Source§impl FromPrimitive for CellType
impl FromPrimitive for CellType
Source§fn from_i64(n: i64) -> Option<Self>
fn from_i64(n: i64) -> Option<Self>
Converts an
i64
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.Source§fn from_u64(n: u64) -> Option<Self>
fn from_u64(n: u64) -> Option<Self>
Converts an
u64
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.Source§fn from_isize(n: isize) -> Option<Self>
fn from_isize(n: isize) -> Option<Self>
Converts an
isize
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.Source§fn from_i8(n: i8) -> Option<Self>
fn from_i8(n: i8) -> Option<Self>
Converts an
i8
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.Source§fn from_i16(n: i16) -> Option<Self>
fn from_i16(n: i16) -> Option<Self>
Converts an
i16
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.Source§fn from_i32(n: i32) -> Option<Self>
fn from_i32(n: i32) -> Option<Self>
Converts an
i32
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.Source§fn from_i128(n: i128) -> Option<Self>
fn from_i128(n: i128) -> Option<Self>
Converts an
i128
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read moreSource§fn from_usize(n: usize) -> Option<Self>
fn from_usize(n: usize) -> Option<Self>
Converts a
usize
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.Source§fn from_u8(n: u8) -> Option<Self>
fn from_u8(n: u8) -> Option<Self>
Converts an
u8
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.Source§fn from_u16(n: u16) -> Option<Self>
fn from_u16(n: u16) -> Option<Self>
Converts an
u16
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.Source§fn from_u32(n: u32) -> Option<Self>
fn from_u32(n: u32) -> Option<Self>
Converts an
u32
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.Source§fn from_u128(n: u128) -> Option<Self>
fn from_u128(n: u128) -> Option<Self>
Converts an
u128
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read moreimpl Copy for CellType
impl StructuralPartialEq for CellType
Auto Trait Implementations§
impl Freeze for CellType
impl RefUnwindSafe for CellType
impl Send for CellType
impl Sync for CellType
impl Unpin for CellType
impl UnwindSafe for CellType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more