Wildmeshing Toolkit
CollapseEnergyBeforeInvariant.hpp
Go to the documentation of this file.
1 #pragma once
2 
4 #include "Invariant.hpp"
5 
6 namespace wmtk::invariants {
8 {
9 public:
11  const Mesh& m,
14  int64_t collapse_type = 0);
16 
17  bool before(const simplex::Simplex& s) const override;
18 
19 private:
22  const int64_t m_collapse_type; // 0: collapse to v0, 1: collapse to v1, 2: collapse to midpoint
23 };
24 } // namespace wmtk::invariants
Handle that represents attributes for some mesh.
CollapseEnergyBeforeInvariant(const Mesh &m, const attribute::TypedAttributeHandle< Rational > &coordinate, const attribute::TypedAttributeHandle< double > &energy, int64_t collapse_type=0)
const attribute::TypedAttributeHandle< Rational > m_coordinate_handle
const attribute::TypedAttributeHandle< double > m_energy_handle
bool before(const simplex::Simplex &s) const override
Invariant(const Mesh &m)
Definition: Invariant.cpp:10