|
PolyFEM
|
Non-conforming 3D tetrahedral mesh with hanging nodes, for adaptive h-refinement: refine_element() splits a tetrahedron into 8, and the edges/faces of a refined neighbor become "followers" of the coarse "leader" edge/face. More...
#include <NCMesh3D.hpp>
Classes | |
| struct | ArrayHasher2D |
| struct | ArrayHasher3D |
| struct | follower_edge |
| struct | follower_face |
| struct | ncBoundary |
| struct | ncElem |
| struct | ncVert |
Public Member Functions | |
| NCMesh3D ()=default | |
| virtual | ~NCMesh3D ()=default |
| NCMesh3D (NCMesh3D &&)=default | |
| NCMesh3D & | operator= (NCMesh3D &&)=default |
| NCMesh3D (const NCMesh3D &)=default | |
| NCMesh3D & | operator= (const NCMesh3D &)=default |
| void | refine (const int n_refinement, const double t) override |
| refine the mesh | |
| bool | is_conforming () const override |
| if the mesh is conforming | |
| int | n_cells () const override |
| number of cells | |
| int | n_faces () const override |
| number of faces | |
| int | n_edges () const override |
| number of edges | |
| int | n_vertices () const override |
| number of vertices | |
| int | n_face_vertices (const int f_id) const override |
| number of vertices of a face | |
| int | n_face_cells (const int f_id) const |
| int | n_edge_cells (const int e_id) const |
| int | n_cell_vertices (const int c_id) const override |
| number of vertices of a cell | |
| int | n_cell_edges (const int c_id) const override |
| int | n_cell_faces (const int c_id) const override |
| int | cell_vertex (const int f_id, const int lv_id) const override |
| id of the vertex of a cell | |
| int | cell_face (const int c_id, const int lf_id) const override |
| int | cell_face_orientation (const int, const int) const override |
| int | cell_edge (const int c_id, const int le_id) const override |
| int | face_vertex (const int f_id, const int lv_id) const override |
| id of the face vertex | |
| int | face_edge (const int f_id, const int le_id) const |
| int | edge_vertex (const int e_id, const int lv_id) const override |
| id of the edge vertex | |
| int | cell_ref_level (const int c_id) const |
| bool | is_boundary_vertex (const int vertex_global_id) const override |
| is vertex boundary | |
| bool | is_boundary_edge (const int edge_global_id) const override |
| is edge boundary | |
| bool | is_boundary_face (const int face_global_id) const override |
| is face boundary | |
| bool | is_boundary_element (const int element_global_id) const override |
| is cell boundary | |
| bool | build_topology (const MeshData &data) override |
| Construct only the dimension-specific topology. | |
| void | attach_higher_order_nodes (const Eigen::MatrixXd &V, const std::vector< std::vector< int > > &nodes) override |
| attach high order nodes | |
| void | normalize () override |
| normalize the mesh | |
| void | compute_elements_tag () override |
| compute element types, see ElementType | |
| void | update_elements_tag () override |
| Update elements types. | |
| double | edge_length (const int gid) const override |
| edge length | |
| RowVectorNd | point (const int global_index) const override |
| point coordinates | |
| void | set_point (const int global_index, const RowVectorNd &p) override |
| Set the point. | |
| RowVectorNd | edge_barycenter (const int e) const override |
| edge barycenter | |
| RowVectorNd | face_barycenter (const int f) const override |
| face barycenter | |
| RowVectorNd | cell_barycenter (const int c) const override |
| cell barycenter | |
| void | bounding_box (RowVectorNd &min, RowVectorNd &max) const override |
| computes the bbox of the mesh | |
| void | compute_boundary_ids (const std::function< int(const size_t, const std::vector< int > &, const RowVectorNd &, bool)> &marker) override |
| computes boundary selections based on a function | |
| void | compute_body_ids (const std::function< int(const size_t, const std::vector< int > &, const RowVectorNd &)> &marker) override |
| computes boundary selections based on a function | |
| void | set_boundary_ids (const std::vector< int > &boundary_ids) override |
| Set the boundary selection from a vector. | |
| void | set_body_ids (const std::vector< int > &body_ids) override |
| Set the volume sections. | |
| int | get_boundary_id (const int primitive) const override |
| Get the boundary selection of an element (face in 3d, edge in 2d) | |
| int | get_body_id (const int primitive) const override |
| Get the volume selection of an element (cell in 3d, face in 2d) | |
| RowVectorNd | kernel (const int cell_id) const override |
| Navigation3D::Index | get_index_from_element (int hi, int lf, int lv) const override |
| Navigation3D::Index | get_index_from_element (int hi) const override |
| Navigation3D::Index | get_index_from_element_edge (int hi, int v0, int v1) const override |
| Navigation3D::Index | get_index_from_element_face (int hi, int v0, int v1, int v2) const override |
| std::vector< uint32_t > | vertex_neighs (const int v_gid) const override |
| std::vector< uint32_t > | edge_neighs (const int e_gid) const override |
| int | leader_edge_of_vertex (const int v_id) const |
| int | leader_edge_of_edge (const int e_id) const |
| int | leader_face_of_vertex (const int v_id) const |
| int | leader_face_of_edge (const int e_id) const |
| int | leader_face_of_face (const int f_id) const |
| int | n_follower_edges (const int e_id) const |
| int | n_follower_faces (const int e_id) const |
| Navigation3D::Index | switch_vertex (Navigation3D::Index idx) const override |
| Navigation3D::Index | switch_edge (Navigation3D::Index idx) const override |
| Navigation3D::Index | switch_face (Navigation3D::Index idx) const override |
| Navigation3D::Index | switch_element (Navigation3D::Index idx) const override |
| Navigation3D::Index | next_around_edge (Navigation3D::Index idx) const override |
| Navigation3D::Index | next_around_face (Navigation3D::Index idx) const override |
| void | get_vertex_elements_neighs (const int v_id, std::vector< int > &ids) const override |
| void | get_edge_elements_neighs (const int e_id, std::vector< int > &ids) const override |
| void | get_face_elements_neighs (const int f_id, std::vector< int > &ids) const |
| void | refine_element (int id_full) |
| void | refine_elements (const std::vector< int > &ids) |
| void | coarsen_element (int id_full) |
| void | mark_boundary () |
| void | prepare_mesh () override |
| method used to finalize the mesh. | |
| void | build_index_mapping () |
| std::array< int, 4 > | get_ordered_vertices_from_tet (const int element_index) const override |
| void | append (const Mesh &mesh) override |
| appends a new mesh to the end of this | |
| std::unique_ptr< Mesh > | copy () const override |
| Create a copy of the mesh. | |
Public Member Functions inherited from polyfem::mesh::Mesh3D | |
| Mesh3D ()=default | |
| virtual | ~Mesh3D ()=default |
| Mesh3D (Mesh3D &&)=default | |
| Mesh3D & | operator= (Mesh3D &&)=default |
| Mesh3D (const Mesh3D &)=default | |
| Mesh3D & | operator= (const Mesh3D &)=default |
| bool | is_volume () const override |
| checks if mesh is volume | |
| void | elements_boxes (std::vector< std::array< Eigen::Vector3d, 2 > > &boxes) const override |
| constructs a box around every element (3d cell, 2d face) | |
| void | barycentric_coords (const RowVectorNd &p, const int el_id, Eigen::MatrixXd &coord) const override |
| constructs barycentric coodiantes for a point p. | |
| void | compute_cell_jacobian (const int el_id, const Eigen::MatrixXd &reference_map, Eigen::MatrixXd &jacobian) const |
| double | tri_area (const int gid) const override |
| area of a tri face of a tet mesh | |
| std::pair< RowVectorNd, int > | edge_node (const Navigation3D::Index &index, const int n_new_nodes, const int i) const |
| std::pair< RowVectorNd, int > | face_node (const Navigation3D::Index &index, const int n_new_nodes, const int i, const int j) const |
| std::pair< RowVectorNd, int > | face_node (const Navigation3D::Index &index, const int n_new_nodes, const int n_new_nodesq, const int i, const int j) const |
| std::pair< RowVectorNd, int > | cell_node (const Navigation3D::Index &index, const int n_new_nodes, const int i, const int j, const int k) const |
| void | get_edges (Eigen::MatrixXd &p0, Eigen::MatrixXd &p1) const override |
| Get all the edges. | |
| void | get_edges (Eigen::MatrixXd &p0, Eigen::MatrixXd &p1, const std::vector< bool > &valid_elements) const override |
| Get all the edges according to valid_elements selection. | |
| void | to_face_functions (std::array< std::function< Navigation3D::Index(Navigation3D::Index)>, 6 > &to_face) const |
| void | to_vertex_functions (std::array< std::function< Navigation3D::Index(Navigation3D::Index)>, 8 > &to_vertex) const |
| void | to_edge_functions (std::array< std::function< Navigation3D::Index(Navigation3D::Index)>, 12 > &to_edge) const |
| std::array< int, 8 > | get_ordered_vertices_from_hex (const int element_index) const |
| std::array< int, 6 > | get_ordered_vertices_from_prism (const int element_index) const |
| std::array< int, 5 > | get_ordered_vertices_from_pyramid (const int element_index) const |
| void | compute_element_barycenters (Eigen::MatrixXd &barycenters) const override |
| utility for 2d/3d. | |
Public Member Functions inherited from polyfem::mesh::Mesh | |
| MeshData | to_mesh_data () const |
| Capture the complete runtime mesh in the canonical, format-independent representation. | |
| std::vector< MeshWithID > | split () const |
| Split the mesh according to its per-element geometry IDs. | |
| virtual | ~Mesh ()=default |
| Destroy the Mesh object. | |
| Mesh (Mesh &&)=default | |
| Construct a new Mesh object. | |
| Mesh & | operator= (Mesh &&)=default |
| Copy constructor. | |
| Mesh (const Mesh &)=default | |
| Construct a new Mesh object. | |
| Mesh & | operator= (const Mesh &)=default |
| int | dimension () const |
| utily for dimension | |
| int | n_elements () const |
| utitlity to return the number of elements, cells or faces in 3d and 2d | |
| int | n_boundary_elements () const |
| utitlity to return the number of boundary elements, faces or edges in 3d and 2d | |
| int | element_vertex (const int el_id, const int lv_id) const |
| id of the vertex of a element | |
| std::vector< int > | element_vertices (const int el_id) const |
| list of vids of an element | |
| int | boundary_element_vertex (const int primitive_id, const int lv_id) const |
| const Eigen::MatrixXi & | orders () const |
| order of each element | |
| bool | is_rational () const |
| check if curved mesh has rational polynomials elements | |
| void | set_is_rational (const bool in_is_rational) |
| Set the is rational object. | |
| virtual double | quad_area (const int gid) const |
| area of a quad face of an hex mesh | |
| void | edge_barycenters (Eigen::MatrixXd &barycenters) const |
| all edges barycenters | |
| void | face_barycenters (Eigen::MatrixXd &barycenters) const |
| all face barycenters | |
| void | cell_barycenters (Eigen::MatrixXd &barycenters) const |
| all cells barycenters | |
| bool | is_spline_compatible (const int el_id) const |
| checks if element is spline compatible | |
| bool | is_cube (const int el_id) const |
| checks if element is cube compatible | |
| bool | is_polytope (const int el_id) const |
| checks if element is polygon compatible | |
| bool | is_simplex (const int el_id) const |
| checks if element is simplex | |
| bool | is_prism (const int el_id) const |
| checks if element is a prism | |
| bool | is_pyramid (const int el_id) const |
| checks if element is a pyramid | |
| const std::vector< ElementType > & | elements_tag () const |
| Returns the elements types. | |
| void | set_tag (const int el, const ElementType type) |
| changes the element type | |
| void | compute_node_ids (const std::function< int(const size_t, const RowVectorNd &, bool)> &marker) |
| computes boundary selections based on a function | |
| virtual int | get_default_boundary_id (const int primitive) const |
| Get the default boundary selection of an element (face in 3d, edge in 2d) | |
| virtual int | get_node_id (const int node_id) const |
| Get the boundary selection of a node. | |
| virtual const std::vector< int > & | get_body_ids () const |
| Get the volume selection of all elements (cells in 3d, faces in 2d) | |
| void | set_geometry_ids (const std::vector< int > &geometry_ids) |
| Set the geometry selection, one ID per element. | |
| int | get_geometry_id (const int element) const |
| Get the geometry ID of an element. The default geometry is 0. | |
| const std::vector< int > & | get_geometry_ids () const |
| bool | has_geometry_ids () const |
| bool | has_node_ids () const |
| checks if points selections are available | |
| bool | has_boundary_ids () const |
| checks if surface selections are available | |
| virtual bool | has_body_ids () const |
| checks if volumes selections are available | |
| const std::vector< double > & | cell_weights (const int cell_index) const |
| weights for rational polynomial meshes | |
| void | set_cell_weights (const std::vector< std::vector< double > > &in_cell_weights) |
| Set the cell weights for rational polynomial meshes. | |
| bool | has_poly () const |
| checks if the mesh has polytopes | |
| bool | has_prism () const |
| checks if the mesh has prisms | |
| bool | has_pyramids () const |
| checks if the mesh has pyramids | |
| bool | is_simplicial () const |
| checks if the mesh is simplicial | |
| bool | is_linear () const |
| check if the mesh is linear | |
| std::vector< std::pair< int, int > > | edges () const |
| list of sorted edges. | |
| std::vector< std::vector< int > > | faces () const |
| list of sorted faces. | |
| std::unordered_map< std::pair< int, int >, size_t, polyfem::utils::HashPair > | edges_to_ids () const |
| map from edge (pair of v id) to the id of the edge | |
| std::unordered_map< std::vector< int >, size_t, polyfem::utils::HashVector > | faces_to_ids () const |
| map from face (tuple of v id) to the id of the face | |
| const Eigen::VectorXi & | in_ordered_vertices () const |
| Order of the input vertices. | |
| const Eigen::MatrixXi & | in_ordered_edges () const |
| Order of the input edges. | |
| const Eigen::MatrixXi & | in_ordered_faces () const |
| Order of the input edges. | |
| void | append (const std::unique_ptr< Mesh > &mesh) |
| appends a new mesh to the end of this, utility that takes pointer, calls other one | |
| virtual void | apply_affine_transformation (const MatrixNd &A, const VectorNd &b) |
| Apply an affine transformation \(Ax+b\) to the vertex positions \(x\) (and to every other stored position, e.g. | |
Protected Member Functions | |
| void | remove_elements (const std::vector< bool > &keep) override |
| Remove all top-dimensional elements whose mask entry is false. | |
| int | all_to_valid_vertex (const int id) const |
| int | valid_to_all_vertex (const int id) const |
| int | all_to_valid_edge (const int id) const |
| int | valid_to_all_edge (const int id) const |
| int | all_to_valid_face (const int id) const |
| int | valid_to_all_face (const int id) const |
| int | all_to_valid_elem (const int id) const |
| int | valid_to_all_elem (const int id) const |
| int | map_id (const std::vector< int > &map, const int id) const |
| int | find_vertex (Eigen::Vector2i v) const |
| int | find_vertex (const int v1, const int v2) const |
| int | get_vertex (Eigen::Vector2i v) |
| int | find_edge (Eigen::Vector2i v) const |
| int | find_edge (const int v1, const int v2) const |
| int | get_edge (Eigen::Vector2i v) |
| int | get_edge (const int v1, const int v2) |
| int | find_face (Eigen::Vector3i v) const |
| int | find_face (const int v1, const int v2, const int v3) const |
| int | get_face (Eigen::Vector3i v) |
| int | get_face (const int v1, const int v2, const int v3) |
| void | traverse_edge (Eigen::Vector2i v, double p1, double p2, int depth, std::vector< follower_edge > &list) const |
| void | build_edge_follower_chain () |
| void | traverse_face (int v1, int v2, int v3, Eigen::Vector2d p1, Eigen::Vector2d p2, Eigen::Vector2d p3, int depth, std::vector< follower_face > &face_list, std::vector< int > &edge_list) const |
| void | build_face_follower_chain () |
| void | build_element_vertex_adjacency () |
| int | add_element (Eigen::Vector4i v, int parent=-1) |
| void | stale_index_error () const |
| Throws: the id maps are stale (prepare_mesh() was not called after editing the mesh). | |
| void | update_labels_after_refinement () |
| After a refinement: rebuild the body/boundary id arrays from the per-entity labels (inherited by the children) and drop node and geometry ids. | |
Protected Member Functions inherited from polyfem::mesh::Mesh | |
| Mesh ()=default | |
| Construct a new Mesh object. | |
| void | filter_element_data (const std::vector< bool > &keep) |
| void | clear_higher_order_data () |
| void | clear_data_lost_by_refinement () |
| Drop the labels and the higher-order geometry before a conforming refinement. | |
| void | transform_higher_order_data (const MatrixNd &A, const VectorNd &b) |
Protected Attributes | |
| int | n_elements = 0 |
| bool | index_prepared = false |
| Whether the valid <-> all id maps match the current topology. | |
| bool | adj_prepared = false |
| std::vector< ncElem > | elements |
| std::vector< ncVert > | vertices |
| std::vector< ncBoundary > | edges |
| std::vector< ncBoundary > | faces |
| std::unordered_map< Eigen::Vector2i, int, ArrayHasher2D > | midpointMap |
| std::unordered_map< Eigen::Vector2i, int, ArrayHasher2D > | edgeMap |
| std::unordered_map< Eigen::Vector3i, int, ArrayHasher3D > | faceMap |
| std::vector< int > | all_to_valid_elemMap |
| std::vector< int > | valid_to_all_elemMap |
| std::vector< int > | all_to_valid_vertexMap |
| std::vector< int > | valid_to_all_vertexMap |
| std::vector< int > | all_to_valid_edgeMap |
| std::vector< int > | valid_to_all_edgeMap |
| std::vector< int > | all_to_valid_faceMap |
| std::vector< int > | valid_to_all_faceMap |
| std::vector< int > | refineHistory |
| Eigen::SparseMatrix< bool, Eigen::RowMajor > | elementAdj |
Protected Attributes inherited from polyfem::mesh::Mesh | |
| std::vector< ElementType > | elements_tag_ |
| list of element types | |
| std::vector< int > | node_ids_ |
| list of node labels, one per vertex | |
| std::vector< int > | boundary_ids_ |
| list of surface labels | |
| std::vector< int > | body_ids_ |
| list of volume labels | |
| std::vector< int > | geometry_ids_ |
| list of geometry labels, one per top-dimensional element | |
| Eigen::MatrixXi | orders_ |
| list of geometry orders, one per cell | |
| bool | is_rational_ = false |
| stores if the mesh is rational | |
| std::vector< EdgeNodes > | edge_nodes_ |
| high-order nodes associates to edges | |
| std::vector< FaceNodes > | face_nodes_ |
| high-order nodes associates to faces | |
| std::vector< CellNodes > | cell_nodes_ |
| high-order nodes associates to cells | |
| std::vector< std::vector< double > > | cell_weights_ |
| weights associates to cells for rational polynomail meshes | |
| bool | has_explicit_polyhedral_topology_ = false |
| Whether the source MeshData supplied explicit face/cell incidence. | |
| Eigen::MatrixXd | higher_order_nodes_ |
| Canonical connectivity is retained because the runtime edge/face caches do not preserve the original per-element high-order node ordering. | |
| std::vector< std::vector< int > > | higher_order_connectivity_ |
| Eigen::VectorXi | in_ordered_vertices_ |
| Order of the input vertices. | |
| Eigen::MatrixXi | in_ordered_edges_ |
| Order of the input edges. | |
| Eigen::MatrixXi | in_ordered_faces_ |
| Order of the input faces, TODO: change to std::vector of Eigen::Vector. | |
Additional Inherited Members | |
Static Public Member Functions inherited from polyfem::mesh::Mesh | |
| static std::unique_ptr< Mesh > | create (MeshData data, bool non_conforming=false) |
| Construct a runtime mesh from format-independent decoded data. | |
Non-conforming 3D tetrahedral mesh with hanging nodes, for adaptive h-refinement: refine_element() splits a tetrahedron into 8, and the edges/faces of a refined neighbor become "followers" of the coarse "leader" edge/face.
The mesh keeps every entity ever created, together with the refinement tree: a refined element stays in elements (is_refined) and points to its children; removed elements become ghosts. Entities therefore have two numberings:
The valid-id maps and the adjacency (hanging-node leaders/followers) are rebuilt by prepare_mesh(). Low-level edits (refine_element, coarsen_element) mark them stale and every query then throws until prepare_mesh() is called; refine(), refine_elements() and append() call it themselves. Body and boundary ids are stored per entity and passed from a refined entity to its children.
Definition at line 33 of file NCMesh3D.hpp.
|
default |
|
virtualdefault |
|
default |
|
default |
|
protected |
Definition at line 1244 of file NCMesh3D.cpp.
References add_element(), adj_prepared, edges, elements, faces, get_edge(), get_face(), index_prepared, n_elements, and vertices.
Referenced by add_element(), build_topology(), and refine_element().
|
inlineprotected |
Definition at line 420 of file NCMesh3D.hpp.
References all_to_valid_edgeMap, and map_id().
Referenced by cell_edge(), face_edge(), get_index_from_element_edge(), leader_edge_of_edge(), and leader_edge_of_vertex().
|
inlineprotected |
Definition at line 424 of file NCMesh3D.hpp.
References all_to_valid_elemMap, and map_id().
Referenced by edge_neighs(), get_edge_elements_neighs(), get_face_elements_neighs(), get_vertex_elements_neighs(), switch_element(), and vertex_neighs().
|
inlineprotected |
Definition at line 422 of file NCMesh3D.hpp.
References all_to_valid_faceMap, and map_id().
Referenced by cell_face(), get_index_from_element_face(), leader_face_of_edge(), leader_face_of_face(), and leader_face_of_vertex().
|
inlineprotected |
Definition at line 418 of file NCMesh3D.hpp.
References all_to_valid_vertexMap, and map_id().
Referenced by cell_vertex(), edge_vertex(), and face_vertex().
|
overridevirtual |
appends a new mesh to the end of this
| [in] | mesh | to append |
Reimplemented from polyfem::mesh::Mesh.
Definition at line 888 of file NCMesh3D.cpp.
References adj_prepared, polyfem::mesh::Mesh::append(), polyfem::mesh::NCMesh3D::ncElem::body_id, polyfem::mesh::Mesh::body_ids_, polyfem::mesh::NCMesh3D::ncBoundary::boundary_id, polyfem::mesh::Mesh::boundary_ids_, copy(), edgeMap, edges, elements, faceMap, faces, polyfem::mesh::NCMesh3D::ncElem::geom_vertices, polyfem::mesh::Mesh::get_default_boundary_id(), polyfem::mesh::Mesh::has_body_ids(), polyfem::mesh::Mesh::has_boundary_ids(), index_prepared, polyfem::mesh::SortedIds::insert(), midpointMap, n_cells(), n_elements, n_faces(), prepare_mesh(), refineHistory, valid_to_all_elem(), valid_to_all_face(), and vertices.
|
overridevirtual |
attach high order nodes
| [in] | V | nodes |
| [in] | nodes | list of nodes per element |
Implements polyfem::mesh::Mesh.
Definition at line 163 of file NCMesh3D.cpp.
References n_cells().
|
overridevirtual |
computes the bbox of the mesh
| [out] | min | min coodiante |
| [out] | max | max coodiante |
Implements polyfem::mesh::Mesh.
Definition at line 231 of file NCMesh3D.cpp.
References vertices.
Referenced by normalize().
|
protected |
Definition at line 1083 of file NCMesh3D.cpp.
References edges, and traverse_edge().
Referenced by prepare_mesh().
|
protected |
Definition at line 1189 of file NCMesh3D.cpp.
References edges, faces, and vertices.
Referenced by prepare_mesh().
|
protected |
Definition at line 1152 of file NCMesh3D.cpp.
References edges, faces, and traverse_face().
Referenced by prepare_mesh().
| void polyfem::mesh::NCMesh3D::build_index_mapping | ( | ) |
Definition at line 832 of file NCMesh3D.cpp.
References all_to_valid_edgeMap, all_to_valid_elemMap, all_to_valid_faceMap, all_to_valid_vertexMap, edges, elements, faces, index_prepared, n_edges(), n_elements, n_faces(), n_vertices(), valid_to_all_edgeMap, valid_to_all_elemMap, valid_to_all_faceMap, valid_to_all_vertexMap, and vertices.
Referenced by prepare_mesh().
|
overridevirtual |
Construct only the dimension-specific topology.
Metadata is applied by build_from_data after edge/face indices exist.
Implements polyfem::mesh::Mesh.
Definition at line 129 of file NCMesh3D.cpp.
References add_element(), adj_prepared, edgeMap, edges, elements, polyfem::mesh::MeshData::elements, polyfem::F, faceMap, polyfem::mesh::MeshData::has_polyhedral_topology(), index_prepared, midpointMap, n_elements, prepare_mesh(), refineHistory, V, vertices, and polyfem::mesh::MeshData::vertices.
|
overridevirtual |
cell barycenter
| [in] | c | global cell index |
Implements polyfem::mesh::Mesh.
Definition at line 223 of file NCMesh3D.cpp.
References cell_vertex(), n_cell_vertices(), and point.
Referenced by compute_body_ids().
|
inlineoverridevirtual |
Implements polyfem::mesh::Mesh3D.
Definition at line 250 of file NCMesh3D.hpp.
References all_to_valid_edge(), edges, elements, and valid_to_all_elem().
|
inlineoverridevirtual |
Implements polyfem::mesh::Mesh3D.
Definition at line 248 of file NCMesh3D.hpp.
References all_to_valid_face(), elements, faces, and valid_to_all_elem().
Referenced by get_index_from_element(), get_index_from_element(), get_index_from_element_edge(), get_index_from_element_face(), switch_element(), and switch_face().
|
inlineoverridevirtual |
Implements polyfem::mesh::Mesh3D.
Definition at line 249 of file NCMesh3D.hpp.
|
inline |
Definition at line 255 of file NCMesh3D.hpp.
References elements, and valid_to_all_elem().
|
inlineoverridevirtual |
id of the vertex of a cell
| [in] | f_id | global cell id |
| [in] | lv_id | local vertex id |
Implements polyfem::mesh::Mesh.
Definition at line 247 of file NCMesh3D.hpp.
References all_to_valid_vertex(), elements, valid_to_all_elem(), and vertices.
Referenced by cell_barycenter(), get_ordered_vertices_from_tet(), and is_boundary_element().
| void polyfem::mesh::NCMesh3D::coarsen_element | ( | int | id_full | ) |
Definition at line 746 of file NCMesh3D.cpp.
References adj_prepared, edges, elements, faces, index_prepared, polyfem::log_and_throw_error(), n_elements, refineHistory, and vertices.
|
overridevirtual |
computes boundary selections based on a function
| [in] | marker | lambda function that takes the id and barycenter and returns an integer |
Implements polyfem::mesh::Mesh.
Definition at line 269 of file NCMesh3D.cpp.
References polyfem::mesh::Mesh::body_ids_, cell_barycenter(), polyfem::mesh::Mesh::element_vertices(), elements, n_cells(), and valid_to_all_elem().
|
overridevirtual |
computes boundary selections based on a function
| [in] | marker | lambda function that takes the id, the list of vertices, the barycenter, and true/false if the element is on the boundary and returns an integer |
Implements polyfem::mesh::Mesh.
Definition at line 248 of file NCMesh3D.cpp.
References polyfem::mesh::Mesh::boundary_ids_, face_barycenter(), face_vertex(), faces, is_boundary_face(), n_face_vertices(), n_faces(), and valid_to_all_face().
|
overridevirtual |
compute element types, see ElementType
Implements polyfem::mesh::Mesh.
Definition at line 182 of file NCMesh3D.cpp.
References polyfem::mesh::Mesh::elements_tag_, n_cells(), and polyfem::mesh::SIMPLEX.
Referenced by prepare_mesh().
|
overridevirtual |
Create a copy of the mesh.
Implements polyfem::mesh::Mesh.
Definition at line 989 of file NCMesh3D.cpp.
Referenced by append().
|
overridevirtual |
edge barycenter
| [in] | e | global edge index |
Implements polyfem::mesh::Mesh.
Definition at line 208 of file NCMesh3D.cpp.
References edge_vertex(), and point.
|
overridevirtual |
edge length
| [in] | gid | global edge id |
Reimplemented from polyfem::mesh::Mesh.
Definition at line 190 of file NCMesh3D.cpp.
References edge_vertex(), and point.
|
overridevirtual |
Implements polyfem::mesh::Mesh3D.
Definition at line 530 of file NCMesh3D.cpp.
References all_to_valid_elem(), edges, and valid_to_all_edge().
|
inlineoverridevirtual |
id of the edge vertex
| [in] | e_id | global edge id |
| [in] | lv_id | local vertex index |
Implements polyfem::mesh::Mesh.
Definition at line 253 of file NCMesh3D.hpp.
References all_to_valid_vertex(), edges, valid_to_all_edge(), and vertices.
Referenced by edge_barycenter(), edge_length(), get_index_from_element_face(), and switch_vertex().
|
overridevirtual |
face barycenter
| [in] | f | global face index |
Implements polyfem::mesh::Mesh.
Definition at line 215 of file NCMesh3D.cpp.
References face_vertex(), and point.
Referenced by compute_boundary_ids().
| int polyfem::mesh::NCMesh3D::face_edge | ( | const int | f_id, |
| const int | le_id | ||
| ) | const |
Definition at line 66 of file NCMesh3D.cpp.
References all_to_valid_edge(), faces, find_edge(), and valid_to_all_face().
Referenced by get_index_from_element(), get_index_from_element(), get_index_from_element_edge(), get_index_from_element_face(), switch_edge(), and switch_face().
|
inlineoverridevirtual |
id of the face vertex
| [in] | f_id | global face id |
| [in] | lv_id | local vertex index |
Implements polyfem::mesh::Mesh.
Definition at line 251 of file NCMesh3D.hpp.
References all_to_valid_vertex(), faces, valid_to_all_face(), and vertices.
Referenced by compute_boundary_ids(), face_barycenter(), get_index_from_element(), get_index_from_element(), get_index_from_element_edge(), get_index_from_element_face(), switch_face(), and switch_vertex().
|
inlineprotected |
Definition at line 443 of file NCMesh3D.hpp.
References find_edge().
Referenced by find_edge().
|
protected |
Definition at line 1016 of file NCMesh3D.cpp.
References edgeMap.
Referenced by face_edge(), get_edge(), get_index_from_element_edge(), mark_boundary(), refine_element(), traverse_edge(), and traverse_face().
|
inlineprotected |
Definition at line 451 of file NCMesh3D.hpp.
References find_face().
Referenced by find_face().
|
protected |
Definition at line 1037 of file NCMesh3D.cpp.
References faceMap.
Referenced by get_face(), get_index_from_element_face(), refine_element(), and traverse_face().
|
inlineprotected |
Definition at line 436 of file NCMesh3D.hpp.
References find_vertex().
Referenced by find_vertex().
|
protected |
Definition at line 994 of file NCMesh3D.cpp.
References midpointMap.
Referenced by get_vertex(), refine_element(), traverse_edge(), and traverse_face().
|
inlineoverridevirtual |
Get the volume selection of an element (cell in 3d, face in 2d)
| [in] | primitive | element id |
Reimplemented from polyfem::mesh::Mesh.
Definition at line 292 of file NCMesh3D.hpp.
References elements, and valid_to_all_elem().
|
inlineoverridevirtual |
Get the boundary selection of an element (face in 3d, edge in 2d)
| [in] | primitive | element id |
Reimplemented from polyfem::mesh::Mesh.
Definition at line 287 of file NCMesh3D.hpp.
References faces, polyfem::mesh::Mesh::get_default_boundary_id(), polyfem::mesh::Mesh::has_boundary_ids(), and valid_to_all_face().
|
inlineprotected |
Definition at line 447 of file NCMesh3D.hpp.
References get_edge().
Referenced by get_edge().
|
protected |
Definition at line 1025 of file NCMesh3D.cpp.
References edgeMap, edges, and find_edge().
Referenced by add_element(), and refine_element().
|
overridevirtual |
Implements polyfem::mesh::Mesh3D.
Definition at line 615 of file NCMesh3D.cpp.
References all_to_valid_elem(), edges, and valid_to_all_edge().
|
inlineprotected |
Definition at line 454 of file NCMesh3D.hpp.
References get_face().
Referenced by get_face().
|
protected |
Definition at line 1046 of file NCMesh3D.cpp.
References faceMap, faces, and find_face().
Referenced by add_element(), and refine_element().
| void polyfem::mesh::NCMesh3D::get_face_elements_neighs | ( | const int | f_id, |
| std::vector< int > & | ids | ||
| ) | const |
Definition at line 621 of file NCMesh3D.cpp.
References all_to_valid_elem(), faces, and valid_to_all_face().
|
overridevirtual |
Implements polyfem::mesh::Mesh3D.
Definition at line 427 of file NCMesh3D.cpp.
References cell_face(), face_edge(), and face_vertex().
|
overridevirtual |
Implements polyfem::mesh::Mesh3D.
Definition at line 409 of file NCMesh3D.cpp.
References cell_face(), face_edge(), and face_vertex().
|
overridevirtual |
Implements polyfem::mesh::Mesh3D.
Definition at line 441 of file NCMesh3D.cpp.
References all_to_valid_edge(), cell_face(), face_edge(), face_vertex(), find_edge(), n_face_vertices(), switch_vertex(), and valid_to_all_vertex().
|
overridevirtual |
Implements polyfem::mesh::Mesh3D.
Definition at line 474 of file NCMesh3D.cpp.
References all_to_valid_face(), cell_face(), edge_vertex(), face_edge(), face_vertex(), find_face(), n_face_vertices(), switch_edge(), switch_vertex(), and valid_to_all_vertex().
|
overridevirtual |
Reimplemented from polyfem::mesh::Mesh3D.
Definition at line 1240 of file NCMesh3D.cpp.
References cell_vertex().
|
protected |
Definition at line 1003 of file NCMesh3D.cpp.
References find_vertex(), midpointMap, and vertices.
Referenced by refine_element().
|
overridevirtual |
Implements polyfem::mesh::Mesh3D.
Definition at line 609 of file NCMesh3D.cpp.
References all_to_valid_elem(), valid_to_all_vertex(), and vertices.
|
inlineoverridevirtual |
is edge boundary
| [in] | edge_global_id | global edge id |
Implements polyfem::mesh::Mesh.
Definition at line 258 of file NCMesh3D.hpp.
References edges, and valid_to_all_edge().
|
overridevirtual |
is cell boundary
| [in] | element_global_id | global cell id |
Implements polyfem::mesh::Mesh.
Definition at line 119 of file NCMesh3D.cpp.
References cell_vertex(), is_boundary_vertex(), and n_cell_vertices().
|
inlineoverridevirtual |
is face boundary
| [in] | face_global_id | global face id |
Implements polyfem::mesh::Mesh.
Definition at line 259 of file NCMesh3D.hpp.
References faces, and valid_to_all_face().
Referenced by compute_boundary_ids().
|
inlineoverridevirtual |
is vertex boundary
| [in] | vertex_global_id | global vertex id |
Implements polyfem::mesh::Mesh.
Definition at line 257 of file NCMesh3D.hpp.
References valid_to_all_vertex(), and vertices.
Referenced by is_boundary_element().
|
inlineoverridevirtual |
if the mesh is conforming
Implements polyfem::mesh::Mesh.
Definition at line 205 of file NCMesh3D.hpp.
|
overridevirtual |
Implements polyfem::mesh::Mesh3D.
Definition at line 404 of file NCMesh3D.cpp.
|
inline |
Definition at line 313 of file NCMesh3D.hpp.
References adj_prepared, all_to_valid_edge(), edges, stale_index_error(), and valid_to_all_edge().
|
inline |
Definition at line 307 of file NCMesh3D.hpp.
References adj_prepared, all_to_valid_edge(), stale_index_error(), valid_to_all_vertex(), and vertices.
|
inline |
Definition at line 327 of file NCMesh3D.hpp.
References adj_prepared, all_to_valid_face(), edges, stale_index_error(), and valid_to_all_edge().
|
inline |
Definition at line 334 of file NCMesh3D.hpp.
References adj_prepared, all_to_valid_face(), faces, stale_index_error(), and valid_to_all_face().
|
inline |
Definition at line 320 of file NCMesh3D.hpp.
References adj_prepared, all_to_valid_face(), stale_index_error(), valid_to_all_vertex(), and vertices.
|
inlineprotected |
Definition at line 426 of file NCMesh3D.hpp.
References index_prepared, and stale_index_error().
Referenced by all_to_valid_edge(), all_to_valid_elem(), all_to_valid_face(), all_to_valid_vertex(), valid_to_all_edge(), valid_to_all_elem(), valid_to_all_face(), and valid_to_all_vertex().
| void polyfem::mesh::NCMesh3D::mark_boundary | ( | ) |
Definition at line 793 of file NCMesh3D.cpp.
References edges, faces, find_edge(), and vertices.
Referenced by prepare_mesh().
|
inlineoverridevirtual |
Implements polyfem::mesh::Mesh3D.
Definition at line 245 of file NCMesh3D.hpp.
|
inlineoverridevirtual |
Implements polyfem::mesh::Mesh3D.
Definition at line 246 of file NCMesh3D.hpp.
Referenced by switch_element().
|
inlineoverridevirtual |
number of vertices of a cell
| [in] | c_id | global cell id (face for 2d meshes) |
Implements polyfem::mesh::Mesh.
Definition at line 244 of file NCMesh3D.hpp.
Referenced by cell_barycenter(), and is_boundary_element().
|
inlineoverridevirtual |
number of cells
Implements polyfem::mesh::Mesh.
Definition at line 207 of file NCMesh3D.hpp.
References n_elements.
Referenced by append(), attach_higher_order_nodes(), compute_body_ids(), compute_elements_tag(), remove_elements(), set_body_ids(), update_elements_tag(), and update_labels_after_refinement().
|
inline |
Definition at line 243 of file NCMesh3D.hpp.
References edges, and valid_to_all_edge().
|
inlineoverridevirtual |
number of edges
Implements polyfem::mesh::Mesh.
Definition at line 220 of file NCMesh3D.hpp.
References edges, index_prepared, and valid_to_all_edgeMap.
Referenced by build_index_mapping().
|
inline |
Definition at line 242 of file NCMesh3D.hpp.
References faces, and valid_to_all_face().
|
inlineoverridevirtual |
number of vertices of a face
| [in] | f_id | global face id |
Implements polyfem::mesh::Mesh.
Definition at line 241 of file NCMesh3D.hpp.
Referenced by compute_boundary_ids(), get_index_from_element_edge(), get_index_from_element_face(), switch_face(), and switch_vertex().
|
inlineoverridevirtual |
number of faces
Implements polyfem::mesh::Mesh.
Definition at line 210 of file NCMesh3D.hpp.
References faces, index_prepared, and valid_to_all_faceMap.
Referenced by append(), build_index_mapping(), compute_boundary_ids(), remove_elements(), set_boundary_ids(), and update_labels_after_refinement().
|
inline |
Definition at line 343 of file NCMesh3D.hpp.
References adj_prepared, edges, stale_index_error(), and valid_to_all_edge().
|
inline |
Definition at line 349 of file NCMesh3D.hpp.
References adj_prepared, faces, stale_index_error(), and valid_to_all_face().
|
inlineoverridevirtual |
number of vertices
Implements polyfem::mesh::Mesh.
Definition at line 230 of file NCMesh3D.hpp.
References index_prepared, valid_to_all_vertexMap, and vertices.
Referenced by build_index_mapping(), and remove_elements().
|
overridevirtual |
Implements polyfem::mesh::Mesh3D.
Definition at line 600 of file NCMesh3D.cpp.
References switch_element(), and switch_face().
|
overridevirtual |
Implements polyfem::mesh::Mesh3D.
Definition at line 604 of file NCMesh3D.cpp.
References switch_edge(), and switch_vertex().
|
overridevirtual |
normalize the mesh
Implements polyfem::mesh::Mesh.
Definition at line 170 of file NCMesh3D.cpp.
References bounding_box(), and vertices.
|
overridevirtual |
point coordinates
| [in] | global_index | global vertex index |
Implements polyfem::mesh::Mesh.
Definition at line 198 of file NCMesh3D.cpp.
References valid_to_all_vertex(), and vertices.
|
inlineoverridevirtual |
method used to finalize the mesh.
It computes the cached stuff used in navigation
Reimplemented from polyfem::mesh::Mesh.
Definition at line 377 of file NCMesh3D.hpp.
References adj_prepared, build_edge_follower_chain(), build_element_vertex_adjacency(), build_face_follower_chain(), build_index_mapping(), compute_elements_tag(), and mark_boundary().
Referenced by append(), build_topology(), refine(), refine_elements(), and remove_elements().
|
overridevirtual |
refine the mesh
Conforming meshes drop the data that cannot follow the refinement: boundary, body, node and geometry ids and the higher-order geometry (callers recompute the labels they need, see GeometryLoader). Non-conforming meshes carry body and boundary ids to the children and drop node and geometry ids.
| [in] | n_refinement | number of refinements |
| [in] | t | position of the refinement location (0.5 for standard refinement) |
Implements polyfem::mesh::Mesh.
Definition at line 74 of file NCMesh3D.cpp.
References polyfem::mesh::Mesh::clear_higher_order_data(), elements, polyfem::utils::is_valid(), prepare_mesh(), refine_element(), and update_labels_after_refinement().
| void polyfem::mesh::NCMesh3D::refine_element | ( | int | id_full | ) |
Definition at line 628 of file NCMesh3D.cpp.
References add_element(), adj_prepared, edge_id, edges, elements, faces, find_edge(), find_face(), find_vertex(), get_edge(), get_face(), get_vertex(), index_prepared, n_elements, refineHistory, and vertices.
Referenced by refine(), and refine_elements().
| void polyfem::mesh::NCMesh3D::refine_elements | ( | const std::vector< int > & | ids | ) |
Definition at line 733 of file NCMesh3D.cpp.
References prepare_mesh(), refine_element(), update_labels_after_refinement(), and valid_to_all_elem().
|
overrideprotectedvirtual |
Remove all top-dimensional elements whose mask entry is false.
Implements polyfem::mesh::Mesh.
Definition at line 17 of file NCMesh3D.cpp.
References polyfem::mesh::Mesh::boundary_ids_, edges, elements, faces, polyfem::mesh::Mesh::filter_element_data(), polyfem::mesh::Mesh::get_default_boundary_id(), polyfem::mesh::Mesh::has_boundary_ids(), n_cells(), n_elements, n_faces(), n_vertices(), polyfem::mesh::Mesh::node_ids_, prepare_mesh(), valid_to_all_elem(), valid_to_all_face(), valid_to_all_vertex(), and vertices.
|
overridevirtual |
Set the volume sections.
| [in] | body_ids | vector of labels, one per element |
Reimplemented from polyfem::mesh::Mesh.
Definition at line 290 of file NCMesh3D.cpp.
References elements, n_cells(), polyfem::mesh::Mesh::set_body_ids(), and valid_to_all_elem().
|
overridevirtual |
Set the boundary selection from a vector.
| [in] | boundary_ids | vector one value per element |
Reimplemented from polyfem::mesh::Mesh.
Definition at line 281 of file NCMesh3D.cpp.
References faces, n_faces(), polyfem::mesh::Mesh::set_boundary_ids(), and valid_to_all_face().
|
overridevirtual |
Set the point.
| [in] | global_index | global vertex index |
| [in] | p | value |
Implements polyfem::mesh::Mesh.
Definition at line 203 of file NCMesh3D.cpp.
References valid_to_all_vertex(), and vertices.
|
protected |
Throws: the id maps are stale (prepare_mesh() was not called after editing the mesh).
Definition at line 114 of file NCMesh3D.cpp.
References polyfem::log_and_throw_error().
Referenced by leader_edge_of_edge(), leader_edge_of_vertex(), leader_face_of_edge(), leader_face_of_face(), leader_face_of_vertex(), map_id(), n_follower_edges(), and n_follower_faces().
|
overridevirtual |
Implements polyfem::mesh::Mesh3D.
Definition at line 552 of file NCMesh3D.cpp.
References face_edge().
Referenced by get_index_from_element_face(), and next_around_face().
|
overridevirtual |
Implements polyfem::mesh::Mesh3D.
Definition at line 581 of file NCMesh3D.cpp.
References all_to_valid_elem(), cell_face(), faces, n_cell_faces(), and valid_to_all_face().
Referenced by next_around_edge().
|
overridevirtual |
Implements polyfem::mesh::Mesh3D.
Definition at line 560 of file NCMesh3D.cpp.
References cell_face(), face_edge(), face_vertex(), and n_face_vertices().
Referenced by next_around_edge().
|
overridevirtual |
Implements polyfem::mesh::Mesh3D.
Definition at line 539 of file NCMesh3D.cpp.
References edge_vertex(), face_vertex(), and n_face_vertices().
Referenced by get_index_from_element_edge(), get_index_from_element_face(), and next_around_face().
|
protected |
Definition at line 1058 of file NCMesh3D.cpp.
References edges, find_edge(), find_vertex(), and traverse_edge().
Referenced by build_edge_follower_chain(), and traverse_edge().
|
protected |
Definition at line 1114 of file NCMesh3D.cpp.
References faces, find_edge(), find_face(), find_vertex(), and traverse_face().
Referenced by build_face_follower_chain(), and traverse_face().
|
overridevirtual |
Update elements types.
Reimplemented from polyfem::mesh::Mesh.
Definition at line 186 of file NCMesh3D.cpp.
References polyfem::mesh::Mesh::elements_tag_, n_cells(), and polyfem::mesh::SIMPLEX.
|
protected |
After a refinement: rebuild the body/boundary id arrays from the per-entity labels (inherited by the children) and drop node and geometry ids.
Definition at line 96 of file NCMesh3D.cpp.
References polyfem::mesh::Mesh::body_ids_, polyfem::mesh::Mesh::boundary_ids_, elements, faces, polyfem::mesh::Mesh::geometry_ids_, polyfem::mesh::Mesh::has_body_ids(), polyfem::mesh::Mesh::has_boundary_ids(), n_cells(), n_faces(), polyfem::mesh::Mesh::node_ids_, valid_to_all_elem(), and valid_to_all_face().
Referenced by refine(), and refine_elements().
|
inlineprotected |
Definition at line 421 of file NCMesh3D.hpp.
References map_id(), and valid_to_all_edgeMap.
Referenced by edge_neighs(), edge_vertex(), get_edge_elements_neighs(), is_boundary_edge(), leader_edge_of_edge(), leader_face_of_edge(), n_edge_cells(), and n_follower_edges().
|
inlineprotected |
Definition at line 425 of file NCMesh3D.hpp.
References map_id(), and valid_to_all_elemMap.
Referenced by append(), cell_edge(), cell_face(), cell_ref_level(), cell_vertex(), compute_body_ids(), get_body_id(), refine_elements(), remove_elements(), set_body_ids(), and update_labels_after_refinement().
|
inlineprotected |
Definition at line 423 of file NCMesh3D.hpp.
References map_id(), and valid_to_all_faceMap.
Referenced by append(), compute_boundary_ids(), face_edge(), face_vertex(), get_boundary_id(), get_face_elements_neighs(), is_boundary_face(), leader_face_of_face(), n_face_cells(), n_follower_faces(), remove_elements(), set_boundary_ids(), switch_element(), and update_labels_after_refinement().
|
inlineprotected |
Definition at line 419 of file NCMesh3D.hpp.
References map_id(), and valid_to_all_vertexMap.
Referenced by get_index_from_element_edge(), get_index_from_element_face(), get_vertex_elements_neighs(), is_boundary_vertex(), leader_edge_of_vertex(), leader_face_of_vertex(), point(), remove_elements(), set_point(), and vertex_neighs().
|
overridevirtual |
Implements polyfem::mesh::Mesh3D.
Definition at line 522 of file NCMesh3D.cpp.
References all_to_valid_elem(), valid_to_all_vertex(), and vertices.
|
protected |
Definition at line 472 of file NCMesh3D.hpp.
Referenced by add_element(), append(), build_topology(), coarsen_element(), leader_edge_of_edge(), leader_edge_of_vertex(), leader_face_of_edge(), leader_face_of_face(), leader_face_of_vertex(), n_follower_edges(), n_follower_faces(), prepare_mesh(), and refine_element().
|
protected |
Definition at line 492 of file NCMesh3D.hpp.
Referenced by all_to_valid_edge(), and build_index_mapping().
|
protected |
Definition at line 490 of file NCMesh3D.hpp.
Referenced by all_to_valid_elem(), and build_index_mapping().
|
protected |
Definition at line 493 of file NCMesh3D.hpp.
Referenced by all_to_valid_face(), and build_index_mapping().
|
protected |
Definition at line 491 of file NCMesh3D.hpp.
Referenced by all_to_valid_vertex(), and build_index_mapping().
|
protected |
Definition at line 487 of file NCMesh3D.hpp.
Referenced by append(), build_topology(), find_edge(), and get_edge().
|
protected |
Definition at line 483 of file NCMesh3D.hpp.
Referenced by add_element(), append(), build_edge_follower_chain(), build_element_vertex_adjacency(), build_face_follower_chain(), build_index_mapping(), build_topology(), cell_edge(), coarsen_element(), edge_neighs(), edge_vertex(), get_edge(), get_edge_elements_neighs(), is_boundary_edge(), leader_edge_of_edge(), leader_face_of_edge(), mark_boundary(), n_edge_cells(), n_edges(), n_follower_edges(), refine_element(), remove_elements(), and traverse_edge().
|
protected |
Definition at line 498 of file NCMesh3D.hpp.
|
protected |
Definition at line 481 of file NCMesh3D.hpp.
Referenced by add_element(), append(), build_index_mapping(), build_topology(), cell_edge(), cell_face(), cell_ref_level(), cell_vertex(), coarsen_element(), compute_body_ids(), get_body_id(), refine(), refine_element(), remove_elements(), set_body_ids(), and update_labels_after_refinement().
|
protected |
Definition at line 488 of file NCMesh3D.hpp.
Referenced by append(), build_topology(), find_face(), and get_face().
|
protected |
Definition at line 484 of file NCMesh3D.hpp.
Referenced by add_element(), append(), build_element_vertex_adjacency(), build_face_follower_chain(), build_index_mapping(), cell_face(), coarsen_element(), compute_boundary_ids(), face_edge(), face_vertex(), get_boundary_id(), get_face(), get_face_elements_neighs(), is_boundary_face(), leader_face_of_face(), mark_boundary(), n_face_cells(), n_faces(), n_follower_faces(), refine_element(), remove_elements(), set_boundary_ids(), switch_element(), traverse_face(), and update_labels_after_refinement().
|
protected |
Whether the valid <-> all id maps match the current topology.
Every topological edit (add/refine/coarsen element) clears it and build_index_mapping() (called by prepare_mesh()) sets it again.
Definition at line 471 of file NCMesh3D.hpp.
Referenced by add_element(), append(), build_index_mapping(), build_topology(), coarsen_element(), map_id(), n_edges(), n_faces(), n_vertices(), and refine_element().
|
protected |
Definition at line 486 of file NCMesh3D.hpp.
Referenced by append(), build_topology(), find_vertex(), and get_vertex().
|
protected |
Definition at line 466 of file NCMesh3D.hpp.
Referenced by add_element(), append(), build_index_mapping(), build_topology(), coarsen_element(), n_cells(), refine_element(), and remove_elements().
|
protected |
Definition at line 495 of file NCMesh3D.hpp.
Referenced by append(), build_topology(), coarsen_element(), and refine_element().
|
protected |
Definition at line 492 of file NCMesh3D.hpp.
Referenced by build_index_mapping(), n_edges(), and valid_to_all_edge().
|
protected |
Definition at line 490 of file NCMesh3D.hpp.
Referenced by build_index_mapping(), and valid_to_all_elem().
|
protected |
Definition at line 493 of file NCMesh3D.hpp.
Referenced by build_index_mapping(), n_faces(), and valid_to_all_face().
|
protected |
Definition at line 491 of file NCMesh3D.hpp.
Referenced by build_index_mapping(), n_vertices(), and valid_to_all_vertex().
|
protected |
Definition at line 482 of file NCMesh3D.hpp.
Referenced by add_element(), append(), bounding_box(), build_element_vertex_adjacency(), build_index_mapping(), build_topology(), cell_vertex(), coarsen_element(), edge_vertex(), face_vertex(), get_vertex(), get_vertex_elements_neighs(), is_boundary_vertex(), leader_edge_of_vertex(), leader_face_of_vertex(), mark_boundary(), n_vertices(), normalize(), point(), refine_element(), remove_elements(), set_point(), and vertex_neighs().