2022-11-18 21:50:49 +05:00
|
|
|
#pragma once
|
|
|
|
|
2022-12-06 23:52:49 +05:00
|
|
|
#include "../containers/array.hpp"
|
|
|
|
#include "../math/scalar/scalar.hpp"
|
|
|
|
#include "../math/vector.hpp"
|
2022-11-18 21:50:49 +05:00
|
|
|
|
|
|
|
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|