PolyFEM
Loading...
Searching...
No Matches
WildRemesher.cpp File Reference
#include "WildRemesher.hpp"
#include <polyfem/mesh/remesh/wild_remesh/LocalMesh.hpp>
#include <polyfem/solver/NLProblem.hpp>
#include <polyfem/utils/GeometryUtils.hpp>
#include <wmtk/utils/TupleUtils.hpp>
#include <unordered_map>
Include dependency graph for WildRemesher.cpp:

Go to the source code of this file.

Namespaces

namespace  polyfem
 
namespace  polyfem::mesh
 

Macros

#define VERTEX_ATTRIBUTE_GETTER(name, attribute)
 
#define VERTEX_ATTRIBUTE_SETTER(name, attribute)
 

Functions

template<typename WMTKMesh >
Remesher::EdgeMap< typename WildRemesher< WMTKMesh >::EdgeAttributes::EnergyRank > polyfem::mesh::rank_edges (const Remesher::EdgeMap< double > &edge_energy, const json &args)
 

Macro Definition Documentation

◆ VERTEX_ATTRIBUTE_GETTER

#define VERTEX_ATTRIBUTE_GETTER (   name,
  attribute 
)
Value:
template <class WMTKMesh> \
Eigen::MatrixXd WildRemesher<WMTKMesh>::name() const \
{ \
Eigen::MatrixXd attributes = Eigen::MatrixXd::Constant(WMTKMesh::vert_capacity(), DIM, NaN); \
for (const Tuple &t : WMTKMesh::get_vertices()) \
attributes.row(t.vid(*this)) = vertex_attrs[t.vid(*this)].attribute; \
return attributes; \
}

Definition at line 11 of file WildRemesher.cpp.

◆ VERTEX_ATTRIBUTE_SETTER

#define VERTEX_ATTRIBUTE_SETTER (   name,
  attribute 
)
Value:
template <class WMTKMesh> \
void WildRemesher<WMTKMesh>::name(const Eigen::MatrixXd &attributes) \
{ \
for (const Tuple &t : WMTKMesh::get_vertices()) \
vertex_attrs[t.vid(*this)].attribute = attributes.row(t.vid(*this)); \
}

Definition at line 21 of file WildRemesher.cpp.