#ifndef _FITKMESH_VTK_MAP_H___ #define _FITKMESH_VTK_MAP_H___ #include "FITK_Interface/FITKInterfaceModel/FITKModelEnum.h" #include namespace Interface { //单元类型映射 const QHash eleTypeHash = { {Interface::FITKModelEnum::FITKEleType::Line2, VTK_LINE}, {Interface::FITKModelEnum::FITKEleType::Line3, VTK_QUADRATIC_EDGE}, {Interface::FITKModelEnum::FITKEleType::Tri3, VTK_TRIANGLE}, {Interface::FITKModelEnum::FITKEleType::Tri6, VTK_QUADRATIC_TRIANGLE}, {Interface::FITKModelEnum::FITKEleType::Quad4, VTK_QUAD}, {Interface::FITKModelEnum::FITKEleType::Quad8, VTK_QUADRATIC_QUAD}, {Interface::FITKModelEnum::FITKEleType::Tet4, VTK_TETRA}, {Interface::FITKModelEnum::FITKEleType::Tet10, VTK_QUADRATIC_TETRA}, {Interface::FITKModelEnum::FITKEleType::Wedge6, VTK_WEDGE}, {Interface::FITKModelEnum::FITKEleType::Hex8, VTK_HEXAHEDRON}, {Interface::FITKModelEnum::FITKEleType::Hex20, VTK_QUADRATIC_HEXAHEDRON}, {Interface::FITKModelEnum::FITKEleType::Polygon, VTK_POLYGON}, }; } #endif