hyporo-cpp/source/hpr/mesh/cell.hpp
2023-04-10 22:01:56 +05:00

38 lines
538 B
C++

#pragma once
#include <hpr/containers/array.hpp>
#include <hpr/math/scalar/scalar.hpp>
#include <hpr/math/vector.hpp>
namespace hpr::mesh
{
class Face;
class Cell : public darray<Face*>
{
using face_pointer = Face*;
using base = darray<face_pointer>;
public:
Cell() :
base {}
{}
Cell(std::initializer_list<face_pointer> faces) :
base{faces}
{}
~Cell() override = default;
darray<face_pointer>& faces()
{
return *this;
}
};
}