Wildmeshing Toolkit
Loading...
Searching...
No Matches
Cell.hpp
Go to the documentation of this file.
1#pragma once
2
3#include "PrimitiveType.hpp"
4#include "Tuple.hpp"
5
6namespace wmtk {
7 namespace simplex {
8 class Simplex;
9 }
10
11class Cell
12{
14 int64_t m_dimension;
15
16public:
17 Cell(const Tuple& t, int64_t dimension);
18 Cell(const simplex::Simplex& simplex);
19 Cell(const Tuple& t, PrimitiveType pt);
20
21
22 int64_t dimension() const;
23 const Tuple& tuple() const;
24
25 static Cell vertex(const Tuple& t);
26 static Cell edge(const Tuple& t);
27 static Cell face(const Tuple& t);
28 static Cell tetrahedron(const Tuple& t);
29
30 bool operator==(const Cell& o) const;
31 bool operator<(const Cell& o) const;
32};
33} // namespace wmtk
int64_t m_dimension
Definition Cell.hpp:14
static Cell vertex(const Tuple &t)
Definition Cell.cpp:31
Tuple m_tuple
Definition Cell.hpp:13
int64_t dimension() const
Definition Cell.cpp:22
const Tuple & tuple() const
Definition Cell.cpp:26
static Cell edge(const Tuple &t)
Definition Cell.cpp:35
static Cell tetrahedron(const Tuple &t)
Definition Cell.cpp:43
static Cell face(const Tuple &t)
Definition Cell.cpp:39
bool operator<(const Cell &o) const
Definition Cell.cpp:53
bool operator==(const Cell &o) const
Definition Cell.cpp:48
The Tuple is the basic navigation tool in our mesh data structure.
Definition Tuple.hpp:19