Wildmeshing Toolkit
TriFaceSplit.hpp
Go to the documentation of this file.
1 #pragma once
2 
5 
7 
20 class TriFaceSplit : public Operation
21 {
22 public:
23  TriFaceSplit(Mesh& m);
24 
26 
27  inline EdgeSplit& split() { return m_split; }
28  inline EdgeCollapse& collapse() { return m_collapse; }
29 
30 protected:
31  std::vector<simplex::Simplex> unmodified_primitives(
32  const simplex::Simplex& simplex) const override;
33  std::vector<simplex::Simplex> execute(const simplex::Simplex& simplex) override;
34 
35 private:
38 };
39 
40 } // namespace wmtk::operations::composite
The return tuple is the new vertex, pointing to the original vertex.
std::vector< simplex::Simplex > execute(const simplex::Simplex &simplex) override
returns an empty vector in case of failure
PrimitiveType primitive_type() const override
std::vector< simplex::Simplex > unmodified_primitives(const simplex::Simplex &simplex) const override
Returns all simplices that will be potentially affected by the operation.