Wildmeshing Toolkit
Loading...
Searching...
No Matches
EdgeOperationData.cpp
Go to the documentation of this file.
2
3#include <wmtk/EdgeMesh.hpp>
5 std::vector<simplex::Simplex> EdgeOperationData::new_vertices(const Mesh& m) const {
6 if(m.is_free()) {
7 return {
10 };
11 } else {
12 return {
14 };
15
16 }
17 }
18std::array<Tuple, 2> EdgeOperationData::input_endpoints(const EdgeMesh& m) const
19{
20 std::array<Tuple, 2> r;
21 r[0] = m_operating_tuple;
23 return r;
24}
25
26std::array<Tuple, 2> EdgeOperationData::split_output_edges(const EdgeMesh& m) const
27{
28 std::array<Tuple, 2> r;
29 for (size_t j = 0; j < 2; ++j) {
31 }
32 return r;
33}
34} // namespace wmtk::operations::edge_mesh
Tuple switch_tuple(const Tuple &tuple, PrimitiveType type) const override
switch the orientation of the Tuple of the given dimension
Definition EdgeMesh.cpp:38
bool is_free() const
Definition Mesh.hpp:973
static Tuple tuple_from_id(const Mesh &m, const PrimitiveType type, const int64_t gid)
static simplex::Simplex simplex_from_id(const Mesh &m, const PrimitiveType type, const int64_t gid)
std::array< Tuple, 2 > input_endpoints(const EdgeMesh &m) const
std::array< Tuple, 2 > split_output_edges(const EdgeMesh &) const
std::vector< simplex::Simplex > new_vertices(const Mesh &m) const