#include "BoundingBox.hxx"
+#include <cstdint>
+
namespace INTERP_KERNEL
{
ConnType getIndex() const { return _index; }
- unsigned char getNumberOfNodes() const { return _number; }
+ std::uint16_t getNumberOfNodes() const { return _number; }
const BoundingBox* getBoundingBox() const { return _box; }
/// global number of the element
const ConnType _index;
- const unsigned char _number;
+ const std::uint16_t _number;
/// bounding box of the element - does not change after having been initialised
BoundingBox* _box;
template<class ConnType>
template<class MyMeshType>
MeshElement<ConnType>::MeshElement(const ConnType index, const MyMeshType& mesh)
- : _index(index), _number((unsigned char)mesh.getNumberOfNodesOfElement(OTT<typename MyMeshType::MyConnType,MyMeshType::My_numPol>::indFC(index))), _box(0)
+ : _index(index), _number( static_cast<std::uint16_t>(mesh.getNumberOfNodesOfElement(OTT<typename MyMeshType::MyConnType,MyMeshType::My_numPol>::indFC(index))) ), _box(nullptr)
{
const double**vertices = new const double*[_number];
- for(unsigned char i = 0 ; i < _number ; ++i)
+ for(std::uint16_t i = 0 ; i < _number ; ++i)
vertices[i] = getCoordsOfNode(i , OTT<typename MyMeshType::MyConnType,MyMeshType::My_numPol>::indFC(index), mesh);
// create bounding box