17 const Tuple& current_v = tuple;
19 int64_t val0 =
static_cast<int64_t
>(
23 int64_t val1 =
static_cast<int64_t
>(
33 if (val0 < 4 || val1 < 4) {
46 const Tuple bottom_v =
52 int64_t val3 =
static_cast<int64_t
>(
64 const int64_t val_energy = std::max(
std::abs(val0 - 6),
std::abs(val1 - 6)) +
69 return static_cast<double>(val_energy);
bool is_boundary_vertex(const Tuple &tuple) const
Tuple switch_vertex(const Tuple &tuple) const
virtual double get_value(const simplex::Simplex &domain_simplex) const=0
This function is defined over a simplex (normally a triangle or tetrahedron).
EdgeValenceEnergy(const Mesh &mesh, const attribute::MeshAttributeHandle &variable_attribute_handle)
const TriMesh & tri_mesh() const
const Mesh & mesh() const
const std::vector< Simplex > & simplex_vector() const
Return const reference to the simplex vector.
const Tuple & tuple() const
static Simplex vertex(const Mesh &m, const Tuple &t)
SimplexCollection link(const Mesh &mesh, const simplex::Simplex &simplex, const bool sort_and_clean)
Rational abs(const Rational &r0)