Class to store mesh representation for MeshImpl. More...
#include <MeshImplData.hpp>
Classes | |
struct | Element |
Struct holding an element. More... | |
struct | Vertex |
Struct holding a vertex. More... | |
Public Member Functions | |
void | clear () |
Clear all data. More... | |
size_t | num_vertices () const |
Get number of vertices, does not include mid-nodes. More... | |
size_t | num_elements () const |
Get number of elements. More... | |
size_t | num_vertex_uses () const |
Get number of vertex uses (sum of connectivity length for all elements) Does not count mid-nodes. More... | |
size_t | max_vertex_index () const |
size_t | max_element_index () const |
void | copy_mesh (size_t *vertex_handle_array, size_t *element_hanlde_array, size_t *element_conn_offsets, size_t *element_conn_indices) |
Copy internal representation into CSR rep Does not include mid-nodes. More... | |
void | all_vertices (msq_std::vector< size_t > &list, MsqError &err) const |
Get all vertices, including mid-nodes. More... | |
void | all_elements (msq_std::vector< size_t > &list, MsqError &err) const |
Get all elements. More... | |
bool | is_vertex_valid (size_t index) const |
Check if passed vertex index is valid. More... | |
bool | is_element_valid (size_t index) const |
Check if passed element index is valid. More... | |
bool | is_mid_node (size_t index) const |
Check if the specified node is used as a mid-node on any element. More... | |
bool | is_corner_node (size_t index) const |
Check if the specified node is used as a corner vertex on any element. More... | |
const Vector3D & | get_vertex_coords (size_t index, MsqError &err) const |
Get vertex coordinates. More... | |
void | set_vertex_coords (size_t index, const Vector3D &coords, MsqError &err) |
Set vertex coordinates. More... | |
bool | vertex_is_fixed (size_t index, MsqError &err) const |
Get vertex fixed flag. More... | |
void | fix_vertex (size_t index, bool flag, MsqError &err) |
Set vertex fixed flag. More... | |
unsigned char | get_vertex_byte (size_t index, MsqError &err) const |
Get vertex byte. More... | |
void | set_vertex_byte (size_t index, unsigned char value, MsqError &err) |
Set vertex byte. More... | |
EntityTopology | element_topology (size_t index, MsqError &err) const |
Get element type. More... | |
void | element_topology (size_t index, EntityTopology type, MsqError &err) |
Set element type. More... | |
const msq_std::vector< size_t > & | element_connectivity (size_t index, MsqError &err) const |
Get element connectivity list, including mid-nodes. More... | |
const msq_std::vector< size_t > & | vertex_adjacencies (size_t index, MsqError &err) const |
Get vertex adjacency list. More... | |
void | allocate_vertices (size_t count, MsqError &err) |
Allocate space for specified number of vertices. More... | |
void | allocate_elements (size_t count, MsqError &err) |
Allocate space for specified number of elements. More... | |
void | reset_vertex (size_t index, const Vector3D &coords, bool fixed, MsqError &err) |
Set allocated but unset veretx to specified values. More... | |
void | reset_element (size_t index, const msq_std::vector< size_t > &vertices, EntityTopology topology, MsqError &err) |
Clear element at specified index (if any) including connectivity and adjacency data, and re-initialize with passed data. More... | |
size_t | add_vertex (const Vector3D &coords, bool fixed, MsqError &err) |
Add a new vertex. More... | |
size_t | add_element (const msq_std::vector< size_t > &vertices, EntityTopology topology, MsqError &err) |
Add a new element. More... | |
void | delete_vertex (size_t index, MsqError &err) |
Delete a vertex - may not be referenced by any element. More... | |
void | delete_element (size_t index, MsqError &err) |
Delete an element. More... | |
void | copy_higher_order (msq_std::vector< size_t > &mid_nodes, msq_std::vector< size_t > &vertices, msq_std::vector< size_t > &vertex_indices, msq_std::vector< size_t > &index_offsets, MsqError &err) |
Get all mid-nodes and their adjacent corner vertices. More... | |
void | get_adjacent_elements (msq_std::vector< size_t >::const_iterator nodes, msq_std::vector< size_t >::const_iterator nodes_end, msq_std::vector< size_t > &elems_out, MsqError &err) |
Get elements adjacent to ALL of the passed nodes. More... | |
void | skin (msq_std::vector< size_t > &sides, MsqError &err) |
Skin mesh. More... | |
void | clear () |
Clear all data. More... | |
size_t | num_vertices () const |
Get number of vertices, does not include mid-nodes. More... | |
size_t | num_elements () const |
Get number of elements. More... | |
size_t | num_vertex_uses () const |
Get number of vertex uses (sum of connectivity length for all elements) Does not count mid-nodes. More... | |
size_t | max_vertex_index () const |
size_t | max_element_index () const |
void | copy_mesh (size_t *vertex_handle_array, size_t *element_hanlde_array, size_t *element_conn_offsets, size_t *element_conn_indices) |
Copy internal representation into CSR rep Does not include mid-nodes. More... | |
void | all_vertices (msq_std::vector< size_t > &list, MsqError &err) const |
Get all vertices, including mid-nodes. More... | |
void | all_elements (msq_std::vector< size_t > &list, MsqError &err) const |
Get all elements. More... | |
bool | is_vertex_valid (size_t index) const |
Check if passed vertex index is valid. More... | |
bool | is_element_valid (size_t index) const |
Check if passed element index is valid. More... | |
bool | is_mid_node (size_t index) const |
Check if the specified node is used as a mid-node on any element. More... | |
bool | is_corner_node (size_t index) const |
Check if the specified node is used as a corner vertex on any element. More... | |
const Vector3D & | get_vertex_coords (size_t index, MsqError &err) const |
Get vertex coordinates. More... | |
void | set_vertex_coords (size_t index, const Vector3D &coords, MsqError &err) |
Set vertex coordinates. More... | |
bool | vertex_is_fixed (size_t index, MsqError &err) const |
Get vertex fixed flag. More... | |
void | fix_vertex (size_t index, bool flag, MsqError &err) |
Set vertex fixed flag. More... | |
unsigned char | get_vertex_byte (size_t index, MsqError &err) const |
Get vertex byte. More... | |
void | set_vertex_byte (size_t index, unsigned char value, MsqError &err) |
Set vertex byte. More... | |
EntityTopology | element_topology (size_t index, MsqError &err) const |
Get element type. More... | |
void | element_topology (size_t index, EntityTopology type, MsqError &err) |
Set element type. More... | |
const msq_std::vector< size_t > & | element_connectivity (size_t index, MsqError &err) const |
Get element connectivity list, including mid-nodes. More... | |
const msq_std::vector< size_t > & | vertex_adjacencies (size_t index, MsqError &err) const |
Get vertex adjacency list. More... | |
void | allocate_vertices (size_t count, MsqError &err) |
Allocate space for specified number of vertices. More... | |
void | allocate_elements (size_t count, MsqError &err) |
Allocate space for specified number of elements. More... | |
void | reset_vertex (size_t index, const Vector3D &coords, bool fixed, MsqError &err) |
Set allocated but unset veretx to specified values. More... | |
void | reset_element (size_t index, const msq_std::vector< size_t > &vertices, EntityTopology topology, MsqError &err) |
Clear element at specified index (if any) including connectivity and adjacency data, and re-initialize with passed data. More... | |
size_t | add_vertex (const Vector3D &coords, bool fixed, MsqError &err) |
Add a new vertex. More... | |
size_t | add_element (const msq_std::vector< size_t > &vertices, EntityTopology topology, MsqError &err) |
Add a new element. More... | |
void | delete_vertex (size_t index, MsqError &err) |
Delete a vertex - may not be referenced by any element. More... | |
void | delete_element (size_t index, MsqError &err) |
Delete an element. More... | |
void | copy_higher_order (msq_std::vector< size_t > &mid_nodes, msq_std::vector< size_t > &vertices, msq_std::vector< size_t > &vertex_indices, msq_std::vector< size_t > &index_offsets, MsqError &err) |
Get all mid-nodes and their adjacent corner vertices. More... | |
void | get_adjacent_elements (msq_std::vector< size_t >::const_iterator nodes, msq_std::vector< size_t >::const_iterator nodes_end, msq_std::vector< size_t > &elems_out, MsqError &err) |
Get elements adjacent to ALL of the passed nodes. More... | |
void | skin (msq_std::vector< size_t > &sides, MsqError &err) |
Skin mesh. More... | |
Private Member Functions | |
bool | has_adjacent_elements (size_t elem, const msq_std::vector< size_t > &nodes, MsqError &err) |
helper function for skinning More... | |
void | clear_element (size_t index, MsqError &err) |
Clear existing element data. More... | |
void | set_element (size_t index, const msq_std::vector< size_t > &vertices, EntityTopology topology, MsqError &err) |
Set cleared element. More... | |
bool | has_adjacent_elements (size_t elem, const msq_std::vector< size_t > &nodes, MsqError &err) |
helper function for skinning More... | |
void | clear_element (size_t index, MsqError &err) |
Clear existing element data. More... | |
void | set_element (size_t index, const msq_std::vector< size_t > &vertices, EntityTopology topology, MsqError &err) |
Set cleared element. More... | |
Private Attributes | |
msq_std::vector< Vertex > | vertexList |
Array of vertices. More... | |
msq_std::vector< Element > | elementList |
Array of elements. More... | |
msq_std::vector< size_t > | deletedVertexList |
List of unused indices in vertex list. More... | |
msq_std::vector< size_t > | deletedElementList |
List of unused indices in element list. More... | |
Class to store mesh representation for MeshImpl.
Definition at line 47 of file includeLinks/MeshImplData.hpp.
size_t add_element | ( | const msq_std::vector< size_t > & | vertices, |
EntityTopology | topology, | ||
MsqError & | err | ||
) |
Add a new element.
Definition at line 352 of file Mesh/MeshImplData.cpp.
References MeshImplData::deletedElementList, MeshImplData::elementList, MSQ_ERRZERO, and MeshImplData::set_element().
size_t add_element | ( | const msq_std::vector< size_t > & | vertices, |
EntityTopology | topology, | ||
MsqError & | err | ||
) |
Add a new element.
Add a new vertex.
Definition at line 333 of file Mesh/MeshImplData.cpp.
References MeshImplData::deletedVertexList, MSQ_ERRZERO, MeshImplData::reset_vertex(), and MeshImplData::vertexList.
void all_elements | ( | msq_std::vector< size_t > & | list, |
MsqError & | err | ||
) | const |
Get all elements.
void all_elements | ( | msq_std::vector< size_t > & | list, |
MsqError & | err | ||
) | const |
Get all elements.
Definition at line 552 of file Mesh/MeshImplData.cpp.
References MeshImplData::elementList.
Referenced by MeshImpl::vtk_read_cell_data().
void all_vertices | ( | msq_std::vector< size_t > & | list, |
MsqError & | err | ||
) | const |
Get all vertices, including mid-nodes.
Definition at line 544 of file Mesh/MeshImplData.cpp.
References MeshImplData::vertexList.
Referenced by MeshImpl::vtk_read_point_data().
void all_vertices | ( | msq_std::vector< size_t > & | list, |
MsqError & | err | ||
) | const |
Get all vertices, including mid-nodes.
void allocate_elements | ( | size_t | count, |
MsqError & | err | ||
) |
Allocate space for specified number of elements.
Definition at line 205 of file Mesh/MeshImplData.cpp.
References MeshImplData::elementList, MsqError::INVALID_STATE, and MSQ_SETERR.
Referenced by MeshImpl::read_exodus(), MeshImpl::vtk_create_structured_elems(), MeshImpl::vtk_read_polygons(), and MeshImpl::vtk_read_unstructured_grid().
void allocate_elements | ( | size_t | count, |
MsqError & | err | ||
) |
Allocate space for specified number of elements.
void allocate_vertices | ( | size_t | count, |
MsqError & | err | ||
) |
Allocate space for specified number of vertices.
Definition at line 194 of file Mesh/MeshImplData.cpp.
References MsqError::INVALID_STATE, MSQ_SETERR, and MeshImplData::vertexList.
Referenced by MeshImpl::read_exodus(), MeshImpl::vtk_read_polydata(), MeshImpl::vtk_read_rectilinear_grid(), MeshImpl::vtk_read_structured_grid(), MeshImpl::vtk_read_structured_points(), and MeshImpl::vtk_read_unstructured_grid().
void allocate_vertices | ( | size_t | count, |
MsqError & | err | ||
) |
Allocate space for specified number of vertices.
void clear | ( | ) |
Clear all data.
Definition at line 186 of file Mesh/MeshImplData.cpp.
References MeshImplData::deletedElementList, MeshImplData::deletedVertexList, MeshImplData::elementList, and MeshImplData::vertexList.
Referenced by MeshImpl::clear().
void clear | ( | ) |
Clear all data.
|
private |
Clear existing element data.
|
private |
Clear existing element data.
Definition at line 263 of file Mesh/MeshImplData.cpp.
References TopologyInfo::corners(), MeshImplData::elementList, i, MsqError::INVALID_ARG, MSQ_SETERR, and MeshImplData::vertexList.
Referenced by MeshImplData::delete_element(), and MeshImplData::reset_element().
void copy_higher_order | ( | msq_std::vector< size_t > & | mid_nodes, |
msq_std::vector< size_t > & | vertices, | ||
msq_std::vector< size_t > & | vertex_indices, | ||
msq_std::vector< size_t > & | index_offsets, | ||
MsqError & | err | ||
) |
Get all mid-nodes and their adjacent corner vertices.
Definition at line 447 of file Mesh/MeshImplData.cpp.
References MeshImplData::Vertex::adjacencies, MeshImplData::Element::connectivity, MeshImplData::elementList, i, MsqError::INTERNAL_ERROR, MsqError::INVALID_STATE, MeshImplData::is_vertex_valid(), MeshImplData::Vertex::midcount, MSQ_ERRRTN, MSQ_SETERR, TopologyInfo::side_number(), TopologyInfo::side_vertices(), MeshImplData::Element::topology, v, MeshImplData::Vertex::valid, and MeshImplData::vertexList.
void copy_higher_order | ( | msq_std::vector< size_t > & | mid_nodes, |
msq_std::vector< size_t > & | vertices, | ||
msq_std::vector< size_t > & | vertex_indices, | ||
msq_std::vector< size_t > & | index_offsets, | ||
MsqError & | err | ||
) |
Get all mid-nodes and their adjacent corner vertices.
void copy_mesh | ( | size_t * | vertex_handle_array, |
size_t * | element_hanlde_array, | ||
size_t * | element_conn_offsets, | ||
size_t * | element_conn_indices | ||
) |
Copy internal representation into CSR rep Does not include mid-nodes.
void copy_mesh | ( | size_t * | vertex_handle_array, |
size_t * | element_hanlde_array, | ||
size_t * | element_conn_offsets, | ||
size_t * | element_conn_indices | ||
) |
Copy internal representation into CSR rep Does not include mid-nodes.
Definition at line 390 of file Mesh/MeshImplData.cpp.
References MeshImplData::Element::connectivity, TopologyInfo::corners(), MeshImplData::elementList, offset(), MeshImplData::Element::topology, v, and MeshImplData::vertexList.
Referenced by MeshImpl::get_all_mesh().
void delete_element | ( | size_t | index, |
MsqError & | err | ||
) |
Delete an element.
void delete_element | ( | size_t | index, |
MsqError & | err | ||
) |
Delete an element.
Definition at line 384 of file Mesh/MeshImplData.cpp.
References MeshImplData::clear_element(), MeshImplData::deletedElementList, and MSQ_ERRRTN.
void delete_vertex | ( | size_t | index, |
MsqError & | err | ||
) |
Delete a vertex - may not be referenced by any element.
void delete_vertex | ( | size_t | index, |
MsqError & | err | ||
) |
Delete a vertex - may not be referenced by any element.
Definition at line 372 of file Mesh/MeshImplData.cpp.
References MeshImplData::deletedVertexList, MsqError::INVALID_ARG, MeshImplData::is_vertex_valid(), MSQ_SETERR, and MeshImplData::vertexList.
const msq_std::vector< size_t > & element_connectivity | ( | size_t | index, |
MsqError & | err | ||
) | const |
Get element connectivity list, including mid-nodes.
Definition at line 164 of file Mesh/MeshImplData.cpp.
References Mesquite::dummy_list, MeshImplData::elementList, MsqError::INVALID_ARG, MeshImplData::is_element_valid(), and MSQ_SETERR.
Referenced by MeshImpl::element_get_attached_vertex_count(), MeshImpl::element_get_connectivity(), MeshImpl::elements_get_attached_vertices(), MeshImpl::get_vertex_use_count(), and MeshImpl::vtk_read_unstructured_grid().
const msq_std::vector<size_t>& element_connectivity | ( | size_t | index, |
MsqError & | err | ||
) | const |
Get element connectivity list, including mid-nodes.
EntityTopology element_topology | ( | size_t | index, |
MsqError & | err | ||
) | const |
Get element type.
Definition at line 129 of file Mesh/MeshImplData.cpp.
References MeshImplData::elementList, MsqError::INVALID_ARG, MeshImplData::is_element_valid(), Mesquite::MIXED, and MSQ_SETERR.
Referenced by MeshImpl::vtk_read_unstructured_grid().
EntityTopology element_topology | ( | size_t | index, |
MsqError & | err | ||
) | const |
Get element type.
void element_topology | ( | size_t | index, |
EntityTopology | type, | ||
MsqError & | err | ||
) |
Set element type.
Definition at line 140 of file Mesh/MeshImplData.cpp.
References TopologyInfo::corners(), MeshImplData::elementList, i, MsqError::INVALID_ARG, MeshImplData::is_element_valid(), MSQ_SETERR, and MeshImplData::vertexList.
void element_topology | ( | size_t | index, |
EntityTopology | type, | ||
MsqError & | err | ||
) |
Set element type.
void fix_vertex | ( | size_t | index, |
bool | flag, | ||
MsqError & | err | ||
) |
Set vertex fixed flag.
Definition at line 95 of file Mesh/MeshImplData.cpp.
References MsqError::INVALID_ARG, MeshImplData::is_vertex_valid(), MSQ_SETERR, and MeshImplData::vertexList.
Referenced by MeshImpl::read_exodus(), and MeshImpl::read_vtk().
void fix_vertex | ( | size_t | index, |
bool | flag, | ||
MsqError & | err | ||
) |
Set vertex fixed flag.
void get_adjacent_elements | ( | msq_std::vector< size_t >::const_iterator | nodes, |
msq_std::vector< size_t >::const_iterator | nodes_end, | ||
msq_std::vector< size_t > & | elems_out, | ||
MsqError & | err | ||
) |
Get elements adjacent to ALL of the passed nodes.
Return the list of elements that is the intersection of the adjacency lists of the specified vertices.
Definition at line 560 of file Mesh/MeshImplData.cpp.
References MsqError::INVALID_ARG, MeshImplData::is_vertex_valid(), MSQ_SETERR, and MeshImplData::vertexList.
Referenced by MeshImplData::has_adjacent_elements().
void get_adjacent_elements | ( | msq_std::vector< size_t >::const_iterator | nodes, |
msq_std::vector< size_t >::const_iterator | nodes_end, | ||
msq_std::vector< size_t > & | elems_out, | ||
MsqError & | err | ||
) |
Get elements adjacent to ALL of the passed nodes.
Return the list of elements that is the intersection of the adjacency lists of the specified vertices.
unsigned char get_vertex_byte | ( | size_t | index, |
MsqError & | err | ||
) | const |
Get vertex byte.
Definition at line 107 of file Mesh/MeshImplData.cpp.
References MsqError::INVALID_ARG, MeshImplData::is_vertex_valid(), MSQ_SETERR, and MeshImplData::vertexList.
Referenced by MeshImpl::vertices_get_byte().
unsigned char get_vertex_byte | ( | size_t | index, |
MsqError & | err | ||
) | const |
Get vertex byte.
Get vertex coordinates.
Definition at line 73 of file Mesh/MeshImplData.cpp.
References Mesquite::dummy_vtx, MsqError::INVALID_ARG, MeshImplData::is_vertex_valid(), MSQ_SETERR, and MeshImplData::vertexList.
Referenced by MeshImpl::vertices_get_coordinates(), and MeshImpl::write_vtk().
|
private |
helper function for skinning
Check if any elements adjacent to a side of an element are of the same dimension as the input element.
elem | The element |
nodes | The nodes composing the side of the element |
Definition at line 599 of file Mesh/MeshImplData.cpp.
References TopologyInfo::dimension(), MeshImplData::elementList, and MeshImplData::get_adjacent_elements().
Referenced by MeshImplData::skin().
|
private |
helper function for skinning
Check if any elements adjacent to a side of an element are of the same dimension as the input element.
elem | The element |
nodes | The nodes composing the side of the element |
bool is_corner_node | ( | size_t | index | ) | const |
Check if the specified node is used as a corner vertex on any element.
Definition at line 537 of file Mesh/MeshImplData.cpp.
References MeshImplData::is_vertex_valid(), and MeshImplData::vertexList.
Referenced by MeshImplVertIter::operator++().
bool is_corner_node | ( | size_t | index | ) | const |
Check if the specified node is used as a corner vertex on any element.
|
inline |
Check if passed element index is valid.
Definition at line 83 of file includeLinks/MeshImplData.hpp.
References MeshImplData::elementList.
Referenced by MeshImplData::element_connectivity(), MeshImplData::element_topology(), MeshImplElemIter::operator++(), MeshImplElemIter::restart(), MeshImplData::skin(), and MeshImpl::write_vtk().
|
inline |
Check if passed element index is valid.
Definition at line 83 of file src/Mesh/MeshImplData.hpp.
References MeshImplData::elementList.
bool is_mid_node | ( | size_t | index | ) | const |
Check if the specified node is used as a mid-node on any element.
bool is_mid_node | ( | size_t | index | ) | const |
Check if the specified node is used as a mid-node on any element.
Definition at line 532 of file Mesh/MeshImplData.cpp.
References MeshImplData::is_vertex_valid(), and MeshImplData::vertexList.
|
inline |
Check if passed vertex index is valid.
Definition at line 79 of file src/Mesh/MeshImplData.hpp.
References MeshImplData::vertexList.
|
inline |
Check if passed vertex index is valid.
Definition at line 79 of file includeLinks/MeshImplData.hpp.
References MeshImplData::vertexList.
Referenced by MeshImplData::copy_higher_order(), MeshImplData::delete_vertex(), MeshImplData::fix_vertex(), MeshImplData::get_adjacent_elements(), MeshImplData::get_vertex_byte(), MeshImplData::get_vertex_coords(), MeshImplData::is_corner_node(), MeshImplData::is_mid_node(), MeshImplVertIter::operator++(), MeshImplVertIter::restart(), MeshImplData::set_element(), MeshImplData::set_vertex_byte(), MeshImplData::set_vertex_coords(), MeshImplData::vertex_adjacencies(), MeshImplData::vertex_is_fixed(), and MeshImpl::write_vtk().
|
inline |
Definition at line 63 of file includeLinks/MeshImplData.hpp.
References MeshImplData::elementList.
Referenced by MeshImplElemIter::is_at_end(), and MeshImpl::write_vtk().
|
inline |
Definition at line 63 of file src/Mesh/MeshImplData.hpp.
References MeshImplData::elementList.
|
inline |
Definition at line 62 of file src/Mesh/MeshImplData.hpp.
References MeshImplData::vertexList.
|
inline |
Definition at line 62 of file includeLinks/MeshImplData.hpp.
References MeshImplData::vertexList.
Referenced by MeshImplVertIter::is_at_end(), MeshImpl::read_vtk(), and MeshImpl::write_vtk().
size_t num_elements | ( | ) | const |
Get number of elements.
size_t num_elements | ( | ) | const |
Get number of elements.
Definition at line 54 of file Mesh/MeshImplData.cpp.
References MeshImplData::deletedElementList, and MeshImplData::elementList.
Referenced by MeshImpl::get_all_sizes(), MeshImpl::read_vtk(), MeshImpl::vtk_read_cell_data(), and MeshImpl::write_vtk().
size_t num_vertex_uses | ( | ) | const |
Get number of vertex uses (sum of connectivity length for all elements) Does not count mid-nodes.
size_t num_vertex_uses | ( | ) | const |
Get number of vertex uses (sum of connectivity length for all elements) Does not count mid-nodes.
Definition at line 57 of file Mesh/MeshImplData.cpp.
References TopologyInfo::corners(), and MeshImplData::elementList.
Referenced by MeshImpl::get_all_sizes(), and MeshImpl::write_vtk().
size_t num_vertices | ( | ) | const |
Get number of vertices, does not include mid-nodes.
size_t num_vertices | ( | ) | const |
Get number of vertices, does not include mid-nodes.
Definition at line 40 of file Mesh/MeshImplData.cpp.
References MeshImplData::vertexList.
Referenced by MeshImpl::get_all_sizes(), MeshImpl::read_vtk(), MeshImpl::vtk_read_point_data(), and MeshImpl::write_vtk().
void reset_element | ( | size_t | index, |
const msq_std::vector< size_t > & | vertices, | ||
EntityTopology | topology, | ||
MsqError & | err | ||
) |
Clear element at specified index (if any) including connectivity and adjacency data, and re-initialize with passed data.
void reset_element | ( | size_t | index, |
const msq_std::vector< size_t > & | vertices, | ||
EntityTopology | topology, | ||
MsqError & | err | ||
) |
Clear element at specified index (if any) including connectivity and adjacency data, and re-initialize with passed data.
Definition at line 253 of file Mesh/MeshImplData.cpp.
References MeshImplData::clear_element(), MSQ_ERRRTN, and MeshImplData::set_element().
Referenced by MeshImpl::read_exodus(), MeshImpl::vtk_create_structured_elems(), MeshImpl::vtk_read_polygons(), and MeshImpl::vtk_read_unstructured_grid().
Set allocated but unset veretx to specified values.
Set allocated but unset veretx to specified values.
Definition at line 229 of file Mesh/MeshImplData.cpp.
References MeshImplData::Vertex::adjacencies, MeshImplData::Vertex::coords, MeshImplData::Vertex::fixed, MsqError::INVALID_ARG, MsqError::INVALID_STATE, MSQ_SETERR, MeshImplData::Vertex::valid, and MeshImplData::vertexList.
Referenced by MeshImplData::add_vertex(), MeshImpl::read_exodus(), MeshImpl::vtk_read_polydata(), MeshImpl::vtk_read_rectilinear_grid(), MeshImpl::vtk_read_structured_grid(), MeshImpl::vtk_read_structured_points(), and MeshImpl::vtk_read_unstructured_grid().
|
private |
Set cleared element.
Definition at line 294 of file Mesh/MeshImplData.cpp.
References TopologyInfo::corners(), MeshImplData::elementList, i, MsqError::INVALID_ARG, MeshImplData::is_vertex_valid(), MSQ_SETERR, and MeshImplData::vertexList.
Referenced by MeshImplData::add_element(), and MeshImplData::reset_element().
|
private |
Set cleared element.
void set_vertex_byte | ( | size_t | index, |
unsigned char | value, | ||
MsqError & | err | ||
) |
Set vertex byte.
void set_vertex_byte | ( | size_t | index, |
unsigned char | value, | ||
MsqError & | err | ||
) |
Set vertex byte.
Definition at line 118 of file Mesh/MeshImplData.cpp.
References MsqError::INVALID_ARG, MeshImplData::is_vertex_valid(), MSQ_SETERR, and MeshImplData::vertexList.
Referenced by MeshImpl::vertices_set_byte().
Set vertex coordinates.
Definition at line 216 of file Mesh/MeshImplData.cpp.
References MsqError::INVALID_ARG, MeshImplData::is_vertex_valid(), MSQ_SETERR, and MeshImplData::vertexList.
Referenced by MeshImpl::vertex_set_coordinates().
Set vertex coordinates.
void skin | ( | msq_std::vector< size_t > & | sides, |
MsqError & | err | ||
) |
Skin mesh.
Get the boundary of a mesh as element sides
sides | Element sides as pairs of values : { elem_index, side_number } |
void skin | ( | msq_std::vector< size_t > & | sides, |
MsqError & | err | ||
) |
Skin mesh.
Get the boundary of a mesh as element sides
sides | Element sides as pairs of values : { elem_index, side_number } |
Definition at line 617 of file Mesh/MeshImplData.cpp.
References TopologyInfo::dimension(), MeshImplData::elementList, MeshImplData::has_adjacent_elements(), MeshImplData::is_element_valid(), k, MSQ_ERRRTN, Mesquite::POLYGON, Mesquite::POLYHEDRON, TopologyInfo::side_vertices(), and TopologyInfo::sides().
const msq_std::vector<size_t>& vertex_adjacencies | ( | size_t | index, |
MsqError & | err | ||
) | const |
Get vertex adjacency list.
const msq_std::vector< size_t > & vertex_adjacencies | ( | size_t | index, |
MsqError & | err | ||
) | const |
Get vertex adjacency list.
Definition at line 175 of file Mesh/MeshImplData.cpp.
References Mesquite::dummy_list, MsqError::INVALID_ARG, MeshImplData::is_vertex_valid(), MSQ_SETERR, and MeshImplData::vertexList.
Referenced by MeshImpl::vertex_get_attached_element_count(), and MeshImpl::vertex_get_attached_elements().
bool vertex_is_fixed | ( | size_t | index, |
MsqError & | err | ||
) | const |
Get vertex fixed flag.
Definition at line 84 of file Mesh/MeshImplData.cpp.
References MsqError::INVALID_ARG, MeshImplData::is_vertex_valid(), MSQ_SETERR, and MeshImplData::vertexList.
Referenced by MeshImpl::vertices_are_on_boundary(), and MeshImpl::write_vtk().
bool vertex_is_fixed | ( | size_t | index, |
MsqError & | err | ||
) | const |
Get vertex fixed flag.
|
private |
List of unused indices in element list.
Definition at line 238 of file includeLinks/MeshImplData.hpp.
Referenced by MeshImplData::add_element(), MeshImplData::clear(), MeshImplData::delete_element(), and MeshImplData::num_elements().
|
private |
List of unused indices in vertex list.
Definition at line 236 of file includeLinks/MeshImplData.hpp.
Referenced by MeshImplData::add_vertex(), MeshImplData::clear(), and MeshImplData::delete_vertex().
|
private |
Array of elements.
Definition at line 233 of file includeLinks/MeshImplData.hpp.
Referenced by MeshImplData::add_element(), MeshImplData::all_elements(), MeshImplData::allocate_elements(), MeshImplData::clear(), MeshImplData::clear_element(), MeshImplData::copy_higher_order(), MeshImplData::copy_mesh(), MeshImplData::element_connectivity(), MeshImplData::element_topology(), MeshImplData::has_adjacent_elements(), MeshImplData::is_element_valid(), MeshImplData::max_element_index(), MeshImplData::num_elements(), MeshImplData::num_vertex_uses(), MeshImplData::set_element(), and MeshImplData::skin().
|
private |
Array of vertices.
Definition at line 232 of file includeLinks/MeshImplData.hpp.
Referenced by MeshImplData::add_vertex(), MeshImplData::all_vertices(), MeshImplData::allocate_vertices(), MeshImplData::clear(), MeshImplData::clear_element(), MeshImplData::copy_higher_order(), MeshImplData::copy_mesh(), MeshImplData::delete_vertex(), MeshImplData::element_topology(), MeshImplData::fix_vertex(), MeshImplData::get_adjacent_elements(), MeshImplData::get_vertex_byte(), MeshImplData::get_vertex_coords(), MeshImplData::is_corner_node(), MeshImplData::is_mid_node(), MeshImplData::is_vertex_valid(), MeshImplData::max_vertex_index(), MeshImplData::num_vertices(), MeshImplData::reset_vertex(), MeshImplData::set_element(), MeshImplData::set_vertex_byte(), MeshImplData::set_vertex_coords(), MeshImplData::vertex_adjacencies(), and MeshImplData::vertex_is_fixed().