|
PolyFEM
|
Topology of a conforming 3D mesh (used by CMesh3D), stored as flat arrays indexed by entity id. More...
#include <Mesh3DStorage.hpp>
Public Member Functions | |
| int | n_vertices () const |
| int | n_edges () const |
| int | n_faces () const |
| int | n_cells () const |
| int | EV (const int k, const int e) const |
| int | FV (const int k, const int f) const |
| int | FE (const int k, const int f) const |
| int | HF (const int k, const int c) const |
| int | FH (const int k, const int f) const |
| int | FHi (const int k, const int f) const |
| void | append (const Mesh3DStorage &other) |
| Appends the input topology of other (shifting its ids). | |
| size_t | memory () const |
| Bytes allocated by the storage. | |
Public Attributes | |
| MeshType | type = MeshType::HYB |
| Eigen::MatrixXd | points |
| Vertex positions, 3 x #vertices. | |
| JaggedArray< uint32_t > | vertex_vs |
| JaggedArray< uint32_t > | vertex_es |
| JaggedArray< uint32_t > | vertex_fs |
| JaggedArray< uint32_t > | vertex_hs |
| std::vector< uint8_t > | vertex_boundary |
| std::vector< std::array< uint32_t, 2 > > | edge_vs |
| JaggedArray< uint32_t > | edge_fs |
| JaggedArray< uint32_t > | edge_hs |
| std::vector< uint8_t > | edge_boundary |
| JaggedArray< uint32_t > | face_vs |
| JaggedArray< uint32_t > | face_es |
| JaggedArray< uint32_t > | face_hs |
| JaggedArray< uint16_t > | face_hs_slot |
| std::vector< uint8_t > | face_boundary |
| JaggedArray< uint32_t > | cell_vs |
| navigation order (see above) | |
| JaggedArray< uint32_t > | cell_input_vs |
| input order (rows may be empty) | |
| JaggedArray< uint32_t > | cell_es |
| JaggedArray< uint32_t > | cell_fs |
| JaggedArray< uint8_t > | cell_fs_flag |
| std::vector< uint8_t > | cell_hex |
| std::vector< std::array< double, 3 > > | cell_kernel |
| A point from which the cell is star-shaped. | |
Topology of a conforming 3D mesh (used by CMesh3D), stored as flat arrays indexed by entity id.
The input topology is: points, face_vs (vertices of each face, in order around it), cell_fs and cell_fs_flag (faces of each cell and whether each one is oriented inward), cell_hex, cell_input_vs and cell_kernel (and cell_vs for the HEX type). MeshProcessing3D::build_connectivity derives everything else:
Definition at line 163 of file Mesh3DStorage.hpp.
| void Mesh3DStorage::append | ( | const Mesh3DStorage & | other | ) |
Appends the input topology of other (shifting its ids).
The connectivity must then be rebuilt (Navigation3D::prepare_mesh).
Definition at line 1395 of file MeshProcessing3D.cpp.
References polyfem::mesh::JaggedArray< T >::append(), cell_fs, cell_fs_flag, cell_hex, cell_input_vs, cell_kernel, cell_vs, face_boundary, face_vs, polyfem::mesh::HYB, n_faces(), n_vertices(), points, and type.
Referenced by polyfem::mesh::CMesh3D::append().
|
inline |
Definition at line 200 of file Mesh3DStorage.hpp.
References edge_vs.
|
inline |
Definition at line 202 of file Mesh3DStorage.hpp.
References face_es.
|
inline |
Definition at line 204 of file Mesh3DStorage.hpp.
References face_hs, and polyfem::mesh::JaggedArray< T >::row_size().
|
inline |
Definition at line 205 of file Mesh3DStorage.hpp.
References face_hs, face_hs_slot, and polyfem::mesh::JaggedArray< T >::row_size().
|
inline |
Definition at line 201 of file Mesh3DStorage.hpp.
References face_vs.
|
inline |
Definition at line 203 of file Mesh3DStorage.hpp.
References cell_fs.
| size_t Mesh3DStorage::memory | ( | ) | const |
Bytes allocated by the storage.
Definition at line 1418 of file MeshProcessing3D.cpp.
References cell_es, cell_fs, cell_fs_flag, cell_hex, cell_input_vs, cell_kernel, cell_vs, edge_boundary, edge_fs, edge_hs, edge_vs, face_boundary, face_es, face_hs, face_hs_slot, face_vs, polyfem::mesh::JaggedArray< T >::memory(), points, vertex_boundary, vertex_es, vertex_fs, vertex_hs, and vertex_vs.
|
inline |
Definition at line 197 of file Mesh3DStorage.hpp.
References cell_fs, and polyfem::mesh::JaggedArray< T >::size().
Referenced by polyfem::mesh::MeshProcessing3D::build_connectivity(), polyfem::mesh::CMesh3D::compute_elements_tag(), polyfem::mesh::MeshProcessing3D::ele_subdivison_levels(), polyfem::mesh::MeshProcessing3D::global_orientation_hexes(), polyfem::mesh::CMesh3D::n_cells(), polyfem::mesh::MeshProcessing3D::orient_volume_mesh(), and polyfem::mesh::MeshProcessing3D::reorder_hex_mesh_propogation().
|
inline |
Definition at line 195 of file Mesh3DStorage.hpp.
References edge_vs.
Referenced by polyfem::mesh::MeshProcessing3D::build_connectivity(), polyfem::mesh::CMesh3D::compute_elements_tag(), polyfem::mesh::CMesh3D::n_edges(), and polyfem::mesh::CMesh3D::refine().
|
inline |
Definition at line 196 of file Mesh3DStorage.hpp.
References face_vs, and polyfem::mesh::JaggedArray< T >::size().
Referenced by append(), polyfem::mesh::MeshProcessing3D::build_connectivity(), polyfem::mesh::CMesh3D::compute_elements_tag(), polyfem::mesh::CMesh3D::n_faces(), polyfem::mesh::MeshProcessing3D::orient_surface_mesh(), polyfem::mesh::MeshProcessing3D::orient_volume_mesh(), polyfem::mesh::CMesh3D::refine(), and polyfem::mesh::CMesh3D::remove_elements().
|
inline |
Definition at line 194 of file Mesh3DStorage.hpp.
References points.
Referenced by append(), polyfem::mesh::MeshProcessing3D::build_connectivity(), polyfem::mesh::CMesh3D::compute_elements_tag(), and polyfem::mesh::MeshProcessing3D::orient_volume_mesh().
| JaggedArray<uint32_t> polyfem::mesh::Mesh3DStorage::cell_es |
Definition at line 188 of file Mesh3DStorage.hpp.
Referenced by polyfem::mesh::CMesh3D::cell_edge(), polyfem::mesh::CMesh3D::compute_elements_tag(), memory(), and polyfem::mesh::CMesh3D::n_cell_edges().
| JaggedArray<uint32_t> polyfem::mesh::Mesh3DStorage::cell_fs |
Definition at line 188 of file Mesh3DStorage.hpp.
Referenced by append(), polyfem::mesh::MeshProcessing3D::build_connectivity(), polyfem::mesh::CMesh3D::build_storage_from_cells(), polyfem::mesh::CMesh3D::build_topology(), polyfem::mesh::CMesh3D::cell_face(), polyfem::mesh::CMesh3D::compute_elements_tag(), polyfem::mesh::MeshProcessing3D::ele_subdivison_levels(), HF(), polyfem::mesh::CMesh3D::is_boundary_element(), memory(), polyfem::mesh::CMesh3D::n_cell_faces(), n_cells(), polyfem::mesh::MeshProcessing3D::orient_volume_mesh(), polyfem::mesh::CMesh3D::remove_elements(), and polyfem::mesh::MeshProcessing3D::reorder_hex_mesh_propogation().
| JaggedArray<uint8_t> polyfem::mesh::Mesh3DStorage::cell_fs_flag |
Definition at line 189 of file Mesh3DStorage.hpp.
Referenced by append(), polyfem::mesh::CMesh3D::build_storage_from_cells(), polyfem::mesh::CMesh3D::build_topology(), polyfem::mesh::CMesh3D::cell_face_orientation(), memory(), polyfem::mesh::MeshProcessing3D::orient_volume_mesh(), and polyfem::mesh::CMesh3D::remove_elements().
| std::vector<uint8_t> polyfem::mesh::Mesh3DStorage::cell_hex |
Definition at line 190 of file Mesh3DStorage.hpp.
Referenced by append(), polyfem::mesh::CMesh3D::build_storage_from_cells(), polyfem::mesh::CMesh3D::build_topology(), polyfem::mesh::CMesh3D::compute_elements_tag(), polyfem::mesh::MeshProcessing3D::ele_subdivison_levels(), polyfem::mesh::MeshProcessing3D::global_orientation_hexes(), memory(), polyfem::mesh::CMesh3D::refine(), and polyfem::mesh::CMesh3D::remove_elements().
| JaggedArray<uint32_t> polyfem::mesh::Mesh3DStorage::cell_input_vs |
input order (rows may be empty)
Definition at line 187 of file Mesh3DStorage.hpp.
Referenced by append(), polyfem::mesh::CMesh3D::build_storage_from_cells(), polyfem::mesh::CMesh3D::build_topology(), polyfem::mesh::CMesh3D::cell_vertex(), memory(), and polyfem::mesh::CMesh3D::remove_elements().
| std::vector<std::array<double, 3> > polyfem::mesh::Mesh3DStorage::cell_kernel |
A point from which the cell is star-shaped.
Definition at line 192 of file Mesh3DStorage.hpp.
Referenced by append(), polyfem::mesh::CMesh3D::apply_affine_transformation(), polyfem::mesh::CMesh3D::build_storage_from_cells(), polyfem::mesh::CMesh3D::build_topology(), polyfem::mesh::CMesh3D::kernel(), memory(), polyfem::mesh::CMesh3D::normalize(), and polyfem::mesh::CMesh3D::remove_elements().
| JaggedArray<uint32_t> polyfem::mesh::Mesh3DStorage::cell_vs |
navigation order (see above)
Definition at line 186 of file Mesh3DStorage.hpp.
Referenced by append(), polyfem::mesh::MeshProcessing3D::build_connectivity(), polyfem::mesh::CMesh3D::build_storage_from_cells(), polyfem::mesh::CMesh3D::build_topology(), polyfem::mesh::CMesh3D::cell_barycenter(), polyfem::mesh::CMesh3D::cell_vertex(), polyfem::mesh::CMesh3D::compute_elements_tag(), polyfem::mesh::MeshProcessing3D::global_orientation_hexes(), polyfem::mesh::CMesh3D::is_boundary_element(), memory(), polyfem::mesh::CMesh3D::n_cell_vertices(), polyfem::mesh::CMesh3D::remove_elements(), and polyfem::mesh::MeshProcessing3D::reorder_hex_mesh_propogation().
| std::vector<uint8_t> polyfem::mesh::Mesh3DStorage::edge_boundary |
Definition at line 177 of file Mesh3DStorage.hpp.
Referenced by polyfem::mesh::MeshProcessing3D::build_connectivity(), polyfem::mesh::CMesh3D::is_boundary_edge(), and memory().
| JaggedArray<uint32_t> polyfem::mesh::Mesh3DStorage::edge_fs |
Definition at line 176 of file Mesh3DStorage.hpp.
Referenced by polyfem::mesh::MeshProcessing3D::build_connectivity(), memory(), polyfem::mesh::MeshProcessing3D::orient_surface_mesh(), and polyfem::mesh::MeshProcessing3D::orient_volume_mesh().
| JaggedArray<uint32_t> polyfem::mesh::Mesh3DStorage::edge_hs |
Definition at line 176 of file Mesh3DStorage.hpp.
Referenced by polyfem::mesh::CMesh3D::compute_elements_tag(), polyfem::mesh::CMesh3D::edge_neighs(), polyfem::mesh::CMesh3D::get_edge_elements_neighs(), and memory().
| std::vector<std::array<uint32_t, 2> > polyfem::mesh::Mesh3DStorage::edge_vs |
Definition at line 175 of file Mesh3DStorage.hpp.
Referenced by polyfem::mesh::MeshProcessing3D::build_connectivity(), polyfem::mesh::CMesh3D::edge_barycenter(), polyfem::mesh::CMesh3D::edge_vertex(), EV(), memory(), n_edges(), polyfem::mesh::MeshProcessing3D::orient_surface_mesh(), polyfem::mesh::MeshProcessing3D::orient_volume_mesh(), and polyfem::mesh::CMesh3D::refine().
| std::vector<uint8_t> polyfem::mesh::Mesh3DStorage::face_boundary |
Definition at line 183 of file Mesh3DStorage.hpp.
Referenced by append(), polyfem::mesh::MeshProcessing3D::build_connectivity(), polyfem::mesh::CMesh3D::compute_elements_tag(), polyfem::mesh::CMesh3D::is_boundary_face(), memory(), polyfem::mesh::MeshProcessing3D::orient_volume_mesh(), and polyfem::mesh::MeshProcessing3D::reorder_hex_mesh_propogation().
| JaggedArray<uint32_t> polyfem::mesh::Mesh3DStorage::face_es |
| JaggedArray<uint32_t> polyfem::mesh::Mesh3DStorage::face_hs |
Definition at line 181 of file Mesh3DStorage.hpp.
Referenced by polyfem::mesh::MeshProcessing3D::build_connectivity(), polyfem::mesh::CMesh3D::compute_elements_tag(), FH(), FHi(), memory(), polyfem::mesh::MeshProcessing3D::orient_volume_mesh(), and polyfem::mesh::MeshProcessing3D::reorder_hex_mesh_propogation().
| JaggedArray<uint16_t> polyfem::mesh::Mesh3DStorage::face_hs_slot |
Definition at line 182 of file Mesh3DStorage.hpp.
| JaggedArray<uint32_t> polyfem::mesh::Mesh3DStorage::face_vs |
Definition at line 181 of file Mesh3DStorage.hpp.
Referenced by append(), polyfem::mesh::MeshProcessing3D::build_connectivity(), polyfem::mesh::CMesh3D::build_storage_from_cells(), polyfem::mesh::CMesh3D::build_topology(), polyfem::mesh::CMesh3D::compute_elements_tag(), polyfem::mesh::MeshProcessing3D::ele_subdivison_levels(), polyfem::mesh::CMesh3D::face_barycenter(), polyfem::mesh::CMesh3D::face_vertex(), FV(), memory(), polyfem::mesh::CMesh3D::n_face_vertices(), n_faces(), polyfem::mesh::MeshProcessing3D::orient_surface_mesh(), polyfem::mesh::MeshProcessing3D::orient_volume_mesh(), polyfem::mesh::CMesh3D::quad_area(), polyfem::mesh::CMesh3D::refine(), polyfem::mesh::CMesh3D::remove_elements(), and polyfem::mesh::MeshProcessing3D::reorder_hex_mesh_propogation().
| Eigen::MatrixXd polyfem::mesh::Mesh3DStorage::points |
Vertex positions, 3 x #vertices.
Definition at line 168 of file Mesh3DStorage.hpp.
Referenced by append(), polyfem::mesh::CMesh3D::bounding_box(), polyfem::mesh::CMesh3D::build_storage_from_cells(), polyfem::mesh::CMesh3D::build_topology(), p_bases.Lagrange::compute_basis(), pyramid_bases.Pyramid::compute_basis(), q_bases.Lagrange::compute_basis(), polyfem::mesh::MeshProcessing3D::ele_subdivison_levels(), polyfem::mesh::MeshProcessing3D::global_orientation_hexes(), memory(), n_vertices(), polyfem::mesh::CMesh3D::n_vertices(), polyfem::mesh::CMesh3D::normalize(), polyfem::mesh::MeshProcessing3D::orient_surface_mesh(), polyfem::mesh::MeshProcessing3D::orient_volume_mesh(), polyfem::mesh::CMesh3D::point(), polyfem::mesh::MeshProcessing3D::reorder_hex_mesh_propogation(), and polyfem::mesh::CMesh3D::set_point().
| MeshType polyfem::mesh::Mesh3DStorage::type = MeshType::HYB |
Definition at line 166 of file Mesh3DStorage.hpp.
Referenced by append(), polyfem::mesh::MeshProcessing3D::build_connectivity(), polyfem::mesh::CMesh3D::build_storage_from_cells(), polyfem::mesh::CMesh3D::build_topology(), polyfem::mesh::MeshProcessing3D::global_orientation_hexes(), polyfem::mesh::MeshProcessing3D::orient_volume_mesh(), and polyfem::mesh::CMesh3D::refine().
| std::vector<uint8_t> polyfem::mesh::Mesh3DStorage::vertex_boundary |
Definition at line 172 of file Mesh3DStorage.hpp.
Referenced by polyfem::mesh::MeshProcessing3D::build_connectivity(), polyfem::mesh::CMesh3D::compute_elements_tag(), polyfem::mesh::CMesh3D::is_boundary_vertex(), memory(), and polyfem::mesh::MeshProcessing3D::orient_volume_mesh().
| JaggedArray<uint32_t> polyfem::mesh::Mesh3DStorage::vertex_es |
Definition at line 171 of file Mesh3DStorage.hpp.
Referenced by polyfem::mesh::MeshProcessing3D::build_connectivity(), polyfem::mesh::CMesh3D::compute_elements_tag(), and memory().
| JaggedArray<uint32_t> polyfem::mesh::Mesh3DStorage::vertex_fs |
Definition at line 171 of file Mesh3DStorage.hpp.
Referenced by polyfem::mesh::MeshProcessing3D::build_connectivity(), and memory().
| JaggedArray<uint32_t> polyfem::mesh::Mesh3DStorage::vertex_hs |
Definition at line 171 of file Mesh3DStorage.hpp.
Referenced by polyfem::mesh::CMesh3D::compute_elements_tag(), polyfem::mesh::CMesh3D::get_vertex_elements_neighs(), memory(), and polyfem::mesh::CMesh3D::vertex_neighs().
| JaggedArray<uint32_t> polyfem::mesh::Mesh3DStorage::vertex_vs |
Definition at line 171 of file Mesh3DStorage.hpp.
Referenced by memory(), and polyfem::mesh::MeshProcessing3D::reorder_hex_mesh_propogation().