PolyFEM
Loading...
Searching...
No Matches
polyfem::mesh::Navigation Namespace Reference

Classes

struct  Index
 

Functions

void prepare_mesh (GEO::Mesh &M)
 
Index get_index_from_face (const GEO::Mesh &M, const GEO::Attribute< GEO::index_t > &c2e, int f, int lv)
 
Index switch_vertex (const GEO::Mesh &M, Index idx)
 
Index switch_edge (const GEO::Mesh &M, const GEO::Attribute< GEO::index_t > &c2e, Index idx)
 
Index switch_face (const GEO::Mesh &M, const GEO::Attribute< GEO::index_t > &c2e, Index idx)
 
Index next_around_face (const GEO::Mesh &M, const GEO::Attribute< GEO::index_t > &c2e, Index idx)
 
Index next_around_edge (const GEO::Mesh &M, const GEO::Attribute< GEO::index_t > &c2e, Index idx)
 
Index next_around_vertex (const GEO::Mesh &M, const GEO::Attribute< GEO::index_t > &c2e, Index idx)
 

Function Documentation

◆ get_index_from_face()

Index polyfem::mesh::Navigation::get_index_from_face ( const GEO::Mesh &  M,
const GEO::Attribute< GEO::index_t > &  c2e,
int  f,
int  lv 
)

Definition at line 96 of file Navigation.cpp.

References polyfem::mesh::Navigation::Index::edge, polyfem::mesh::Navigation::Index::face, polyfem::mesh::Navigation::Index::face_corner, switch_edge(), switch_vertex(), and polyfem::mesh::Navigation::Index::vertex.

Referenced by polyfem::mesh::CMesh2D::get_index_from_face(), polyfem::mesh::refine_polygonal_mesh(), and polyfem::mesh::refine_triangle_mesh().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ next_around_edge()

Index polyfem::mesh::Navigation::next_around_edge ( const GEO::Mesh &  M,
const GEO::Attribute< GEO::index_t > &  c2e,
Index  idx 
)
inline

Definition at line 35 of file Navigation.hpp.

References switch_face(), and switch_vertex().

Here is the call graph for this function:

◆ next_around_face()

Index polyfem::mesh::Navigation::next_around_face ( const GEO::Mesh &  M,
const GEO::Attribute< GEO::index_t > &  c2e,
Index  idx 
)
inline

Definition at line 34 of file Navigation.hpp.

References switch_edge(), and switch_vertex().

Referenced by polyfem::mesh::refine_polygonal_mesh(), and polyfem::mesh::refine_triangle_mesh().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ next_around_vertex()

Index polyfem::mesh::Navigation::next_around_vertex ( const GEO::Mesh &  M,
const GEO::Attribute< GEO::index_t > &  c2e,
Index  idx 
)
inline

Definition at line 36 of file Navigation.hpp.

References switch_edge(), and switch_face().

Here is the call graph for this function:

◆ prepare_mesh()

void polyfem::mesh::Navigation::prepare_mesh ( GEO::Mesh &  M)

Definition at line 27 of file Navigation.cpp.

Referenced by polyfem::mesh::CMesh2D::append(), polyfem::mesh::CMesh2D::build_from_matrices(), polyfem::mesh::CMesh2D::load(), and polyfem::mesh::CMesh2D::refine().

Here is the caller graph for this function:

◆ switch_edge()

Index polyfem::mesh::Navigation::switch_edge ( const GEO::Mesh &  M,
const GEO::Attribute< GEO::index_t > &  c2e,
Index  idx 
)

◆ switch_face()

Index polyfem::mesh::Navigation::switch_face ( const GEO::Mesh &  M,
const GEO::Attribute< GEO::index_t > &  c2e,
Index  idx 
)

Definition at line 159 of file Navigation.cpp.

References polyfem::mesh::Navigation::Index::edge, polyfem::mesh::Navigation::Index::face, polyfem::mesh::Navigation::Index::face_corner, polyfem::logger(), and polyfem::mesh::Navigation::Index::vertex.

Referenced by next_around_edge(), next_around_vertex(), and polyfem::mesh::CMesh2D::switch_face().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ switch_vertex()

Index polyfem::mesh::Navigation::switch_vertex ( const GEO::Mesh &  M,
Index  idx 
)