Wildmeshing Toolkit
Loading...
Searching...
No Matches
CollapseEnergyBeforeInvariant.hpp
Go to the documentation of this file.
1#pragma once
2
4#include "Invariant.hpp"
5
6namespace wmtk::invariants {
8{
9public:
11 const Mesh& m,
14 int64_t collapse_type = 0);
16
17 bool before(const simplex::Simplex& s) const override;
18
19private:
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.
const attribute::TypedAttributeHandle< Rational > m_coordinate_handle
const attribute::TypedAttributeHandle< double > m_energy_handle
bool before(const simplex::Simplex &s) const override