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

Functions

void build_connectivity (Mesh3DStorage &hmi)
 
void reorder_hex_mesh_propogation (Mesh3DStorage &hmi)
 
double a_jacobian (Eigen::Vector3d &v0, Eigen::Vector3d &v1, Eigen::Vector3d &v2, Eigen::Vector3d &v3)
 
void global_orientation_hexes (Mesh3DStorage &hmi)
 
void refine_catmul_clark_polar (Mesh3DStorage &M, int iter, std::vector< int > &Parents)
 
void refine_red_refinement_tet (Mesh3DStorage &M, int iter)
 
void orient_surface_mesh (Mesh3DStorage &hmi)
 
void orient_volume_mesh (Mesh3DStorage &hmi)
 
void ele_subdivison_levels (const Mesh3DStorage &hmi, std::vector< int > &Ls)
 
template<typename RangeA , typename RangeB >
void set_intersection_own (const RangeA &A, const RangeB &B, std::array< uint32_t, 2 > &C, int &num)
 The first num common ids of A and B (in the order of A).
 

Variables

const int hex_face_table [6][4]
 
const int hex_tetra_table [8][4]
 
const int tet_faces [4][3]
 
const int tet_edges [6][2]
 

Function Documentation

◆ a_jacobian()

double polyfem::mesh::MeshProcessing3D::a_jacobian ( Eigen::Vector3d &  v0,
Eigen::Vector3d &  v1,
Eigen::Vector3d &  v2,
Eigen::Vector3d &  v3 
)

Referenced by refine_red_refinement_tet().

Here is the caller graph for this function:

◆ build_connectivity()

void polyfem::mesh::MeshProcessing3D::build_connectivity ( Mesh3DStorage &  hmi)

Definition at line 170 of file MeshProcessing3D.cpp.

References polyfem::mesh::JaggedArray< T >::assign_sizes(), polyfem::mesh::Mesh3DStorage::cell_fs, polyfem::mesh::Mesh3DStorage::cell_vs, polyfem::mesh::JaggedArray< T >::clear(), polyfem::mesh::Mesh3DStorage::edge_boundary, polyfem::mesh::Mesh3DStorage::edge_fs, polyfem::mesh::Mesh3DStorage::edge_vs, polyfem::mesh::Mesh3DStorage::face_boundary, polyfem::mesh::Mesh3DStorage::face_es, polyfem::mesh::Mesh3DStorage::face_hs, polyfem::mesh::Mesh3DStorage::face_vs, hex_face_table, polyfem::mesh::Mesh3DStorage::n_cells(), polyfem::mesh::Mesh3DStorage::n_edges(), polyfem::mesh::Mesh3DStorage::n_faces(), polyfem::mesh::Mesh3DStorage::n_vertices(), polyfem::mesh::JaggedArray< T >::push_back(), polyfem::mesh::JaggedArray< T >::reserve(), polyfem::mesh::JaggedArray< T >::row_size(), polyfem::mesh::JaggedArray< T >::size(), polyfem::mesh::Mesh3DStorage::type, polyfem::mesh::Mesh3DStorage::vertex_boundary, polyfem::mesh::Mesh3DStorage::vertex_es, and polyfem::mesh::Mesh3DStorage::vertex_fs.

Referenced by global_orientation_hexes(), orient_volume_mesh(), polyfem::mesh::Navigation3D::prepare_mesh(), refine_catmul_clark_polar(), and refine_red_refinement_tet().

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

◆ ele_subdivison_levels()

void polyfem::mesh::MeshProcessing3D::ele_subdivison_levels ( const Mesh3DStorage &  hmi,
std::vector< int > &  Ls 
)

Definition at line 1351 of file MeshProcessing3D.cpp.

References polyfem::mesh::Mesh3DStorage::cell_fs, polyfem::mesh::Mesh3DStorage::cell_hex, polyfem::mesh::JaggedArray< T >::clear(), polyfem::mesh::Mesh3DStorage::face_vs, polyfem::mesh::Mesh3DStorage::n_cells(), polyfem::mesh::Mesh3DStorage::points, x, y, and z.

Referenced by refine_catmul_clark_polar().

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

◆ global_orientation_hexes()

void polyfem::mesh::MeshProcessing3D::global_orientation_hexes ( Mesh3DStorage &  hmi)

Definition at line 589 of file MeshProcessing3D.cpp.

References build_connectivity(), polyfem::mesh::Mesh3DStorage::cell_hex, polyfem::mesh::Mesh3DStorage::cell_vs, polyfem::mesh::Mesh3DStorage::n_cells(), polyfem::mesh::Mesh3DStorage::points, polyfem::mesh::JaggedArray< T >::push_back(), reorder_hex_mesh_propogation(), polyfem::mesh::JaggedArray< T >::size(), and polyfem::mesh::Mesh3DStorage::type.

Referenced by polyfem::mesh::Navigation3D::prepare_mesh().

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

◆ orient_surface_mesh()

void polyfem::mesh::MeshProcessing3D::orient_surface_mesh ( Mesh3DStorage &  hmi)

Definition at line 1152 of file MeshProcessing3D.cpp.

References polyfem::mesh::Mesh3DStorage::edge_fs, polyfem::mesh::Mesh3DStorage::edge_vs, polyfem::mesh::Mesh3DStorage::face_es, polyfem::mesh::Mesh3DStorage::face_vs, polyfem::mesh::Mesh3DStorage::n_faces(), polyfem::mesh::Mesh3DStorage::points, x, y, and z.

Referenced by orient_volume_mesh().

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

◆ orient_volume_mesh()

◆ refine_catmul_clark_polar()

void polyfem::mesh::MeshProcessing3D::refine_catmul_clark_polar ( Mesh3DStorage &  M,
int  iter,
std::vector< int > &  Parents 
)

Definition at line 620 of file MeshProcessing3D.cpp.

References build_connectivity(), ele_subdivison_levels(), polyfem::mesh::find(), hex_face_table, and orient_volume_mesh().

Referenced by polyfem::mesh::CMesh3D::refine().

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

◆ refine_red_refinement_tet()

void polyfem::mesh::MeshProcessing3D::refine_red_refinement_tet ( Mesh3DStorage &  M,
int  iter 
)

Definition at line 958 of file MeshProcessing3D.cpp.

References a_jacobian(), build_connectivity(), orient_volume_mesh(), point, polyfem::mesh::signed_volume(), tet_edges, and tet_faces.

Referenced by polyfem::mesh::CMesh3D::refine().

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

◆ reorder_hex_mesh_propogation()

void polyfem::mesh::MeshProcessing3D::reorder_hex_mesh_propogation ( Mesh3DStorage &  hmi)

Definition at line 458 of file MeshProcessing3D.cpp.

References polyfem::mesh::Mesh_Quality::ave_Jacobian, polyfem::mesh::Mesh3DStorage::cell_fs, polyfem::mesh::Mesh3DStorage::cell_vs, polyfem::mesh::Mesh3DStorage::face_boundary, polyfem::mesh::Mesh3DStorage::face_hs, polyfem::mesh::Mesh3DStorage::face_vs, hex_face_table, polyfem::mesh::Mesh_Quality::min_Jacobian, polyfem::mesh::Mesh3DStorage::n_cells(), polyfem::mesh::Mesh3DStorage::points, polyfem::mesh::JaggedArray< T >::push_back(), and polyfem::mesh::Mesh3DStorage::vertex_vs.

Referenced by global_orientation_hexes().

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

◆ set_intersection_own()

template<typename RangeA , typename RangeB >
void polyfem::mesh::MeshProcessing3D::set_intersection_own ( const RangeA &  A,
const RangeB &  B,
std::array< uint32_t, 2 > &  C,
int &  num 
)

The first num common ids of A and B (in the order of A).

Definition at line 62 of file MeshProcessing3D.hpp.

Referenced by polyfem::mesh::Navigation3D::get_index_from_element_face(), and polyfem::mesh::Navigation3D::switch_face().

Here is the caller graph for this function:

Variable Documentation

◆ hex_face_table

const int polyfem::mesh::MeshProcessing3D::hex_face_table[6][4]
Initial value:
=
{
{0, 1, 2, 3},
{4, 7, 6, 5},
{0, 4, 5, 1},
{3, 2, 6, 7},
{0, 3, 7, 4},
{1, 5, 6, 2},
}

Definition at line 15 of file MeshProcessing3D.hpp.

Referenced by build_connectivity(), refine_catmul_clark_polar(), and reorder_hex_mesh_propogation().

◆ hex_tetra_table

const int polyfem::mesh::MeshProcessing3D::hex_tetra_table[8][4]
Initial value:
=
{
{0, 3, 4, 1},
{1, 0, 5, 2},
{2, 1, 6, 3},
{3, 2, 7, 0},
{4, 7, 5, 0},
{5, 4, 6, 1},
{6, 5, 7, 2},
{7, 6, 4, 3},
}

Definition at line 24 of file MeshProcessing3D.hpp.

◆ tet_edges

const int polyfem::mesh::MeshProcessing3D::tet_edges[6][2]
Initial value:
= {
{0, 1},
{0, 2},
{0, 3},
{1, 2},
{1, 3},
{2, 3}}

Definition at line 40 of file MeshProcessing3D.hpp.

Referenced by refine_red_refinement_tet().

◆ tet_faces

const int polyfem::mesh::MeshProcessing3D::tet_faces[4][3]
Initial value:
= {
{1, 0, 2},
{3, 2, 0},
{1, 2, 3},
{0, 1, 3}}

Definition at line 35 of file MeshProcessing3D.hpp.

Referenced by refine_red_refinement_tet().