ViennaGrid - The Vienna Grid Library
2.1.0
|
A helper class for element copy operation between two differen meshes. More...
#include <mesh_operations.hpp>
Public Types | |
typedef viennagrid::result_of::coord < DstMeshT >::type | DstNumericType |
typedef viennagrid::result_of::vertex_handle < DstMeshT >::type | DstVertexHandleType |
typedef viennagrid::result_of::vertex < DstMeshT >::type | DstVertexType |
typedef viennagrid::result_of::vertex_id < SrcMeshT >::type | SrcVertexIDType |
typedef viennagrid::result_of::vertex < SrcMeshT >::type | SrcVertexType |
Public Member Functions | |
template<typename ElementTagT , typename WrappedConfigT > | |
viennagrid::result_of::handle < DstMeshT, ElementTagT > ::type | copy_element (element< ElementTagT, WrappedConfigT > const &el, DstNumericType tolerance=0.0) |
Copies a whole element including its vertices to the destination mesh. | |
DstVertexHandleType | operator() (SrcVertexType const &src_vertex, DstNumericType tolerance=0.0) |
Copies one vertex to the destination mesh. If the vertex is already present in the destination mesh, the vertex handle of this vertex is return, otherwise a new vertex is created in the destination mesh. | |
vertex_copy_map (DstMeshT &dst_mesh_) | |
The constructor, requires the destination mesh where the elements are copied to. |
A helper class for element copy operation between two differen meshes.
SrcMeshT | The mesh type of the source mesh |
DstMeshT | The mesh type of the destination mesh |
typedef viennagrid::result_of::coord<DstMeshT>::type DstNumericType |
typedef viennagrid::result_of::vertex_handle<DstMeshT>::type DstVertexHandleType |
typedef viennagrid::result_of::vertex<DstMeshT>::type DstVertexType |
typedef viennagrid::result_of::vertex_id<SrcMeshT>::type SrcVertexIDType |
typedef viennagrid::result_of::vertex<SrcMeshT>::type SrcVertexType |
vertex_copy_map | ( | DstMeshT & | dst_mesh_ | ) | [inline] |
The constructor, requires the destination mesh where the elements are copied to.
dst_mesh_ | The destination mesh |
viennagrid::result_of::handle<DstMeshT, ElementTagT>::type copy_element | ( | element< ElementTagT, WrappedConfigT > const & | el, |
DstNumericType | tolerance = 0.0 |
||
) | [inline] |
Copies a whole element including its vertices to the destination mesh.
el | The element to be copied |
tolerance | A geometric tolerance for vertex creation |
DstVertexHandleType operator() | ( | SrcVertexType const & | src_vertex, |
DstNumericType | tolerance = 0.0 |
||
) | [inline] |
Copies one vertex to the destination mesh. If the vertex is already present in the destination mesh, the vertex handle of this vertex is return, otherwise a new vertex is created in the destination mesh.
src_vertex | The vertex to be copied |
tolerance | A geometric tolerance for vertex creation |