hyporo-cpp/source/hpr/mesh/cell.hpp

38 lines
538 B
C++
Raw Permalink Normal View History

2023-03-13 22:27:09 +05:00
#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;
}
};
2022-11-18 21:50:49 +05:00
}