14#include "arcane/core/internal/VtkCellTypes.h"
16#include "arcane/utils/IOException.h"
17#include "arcane/utils/FatalErrorException.h"
31vtkToArcaneCellType(
int vtk_type,
Int32 nb_node)
40 case VTK_QUADRATIC_EDGE:
46 case VTK_QUADRATIC_QUAD:
53 ARCANE_THROW(IOException,
"Unsupported VtkCellType VTK_POLYGON with nb_node={0}", nb_node);
55 return IT_Tetraedron4;
56 case VTK_QUADRATIC_TETRA:
57 return IT_Tetraedron10;
61 return IT_Pentaedron6;
64 case VTK_QUADRATIC_HEXAHEDRON:
65 return IT_Hexaedron20;
66 case VTK_PENTAGONAL_PRISM:
67 return IT_Heptaedron10;
68 case VTK_HEXAGONAL_PRISM:
69 return IT_Octaedron12;
76 ARCANE_THROW(IOException,
"Unsupported VtkCellType '{0}'", vtk_type);
83unsigned char VtkUtils::
84arcaneToVtkCellType(
Int16 arcane_type)
86 switch (arcane_type) {
88 return VTK_EMPTY_CELL;
94 return VTK_QUADRATIC_EDGE;
100 return VTK_QUADRATIC_TRIANGLE;
104 return VTK_QUADRATIC_QUAD;
113 case IT_Tetraedron10:
114 return VTK_QUADRATIC_TETRA;
120 return VTK_HEXAHEDRON;
122 return VTK_QUADRATIC_HEXAHEDRON;
123 case IT_Heptaedron10:
124 return VTK_PENTAGONAL_PRISM;
126 return VTK_HEXAGONAL_PRISM;
128 ARCANE_FATAL(
"Unsuported item type for VtkWriter type={0}", arcane_type);
#define ARCANE_THROW(exception_class,...)
Macro pour envoyer une exception avec formattage.
#define ARCANE_FATAL(...)
Macro envoyant une exception FatalErrorException.
Déclarations des types généraux de Arcane.
Lecteur des fichiers de maillage via la bibliothèque LIMA.
-*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-