Wildmeshing Toolkit
CollapseEnergyBeforeInvariantDouble.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
CollapseEnergyBeforeInvariantDouble(const Mesh &m, const attribute::TypedAttributeHandle< double > &coordinate, const attribute::TypedAttributeHandle< double > &energy, int64_t collapse_type=0)
const attribute::TypedAttributeHandle< double > m_energy_handle
const attribute::TypedAttributeHandle< double > m_coordinate_handle
Invariant(const Mesh &m)
Definition: Invariant.cpp:10