14#include "arcane/utils/FatalErrorException.h"
15#include "arcane/utils/TraceInfo.h"
17#include "arcane/ArcaneTypes.h"
19#include "arcane/geometric/GeometricGlobal.h"
20#include "arcane/geometric/GeomType.h"
26GEOMETRIC_BEGIN_NAMESPACE
32_geometricTypeToName(GeomType type)
35 case GeomType::NullType:
return "Null";
36 case GeomType::Vertex:
return "Vertex";
37 case GeomType::Line2:
return "Line2";
38 case GeomType::Triangle3:
return "Triangle3";
39 case GeomType::Quad4:
return "Quad4";
40 case GeomType::Pentagon5:
return "Pentagon5";
41 case GeomType::Hexagon6:
return "Hexagon6";
42 case GeomType::Tetraedron4:
return "Tetraedron4";
43 case GeomType::Pyramid5:
return "Pyramid5";
44 case GeomType::Pentaedron6:
return "Pentaedron6";
45 case GeomType::Hexaedron8:
return "Hexaedron8";
46 case GeomType::Heptaedron10:
return "Heptaedron10";
47 case GeomType::Octaedron12:
return "Octaedron12";
56_arcaneBadType(GeomType type,GeomType wanted_type)
58 const char* t1 = _geometricTypeToName(type);
59 const char* t2 = _geometricTypeToName(wanted_type);
60 throw FatalErrorException(A_FUNCINFO,
61 String::format(
"Bad geometric type type={0}, expected={1}",
68GEOMETRIC_END_NAMESPACE