ViennaGrid - The Vienna Grid Library  2.1.0
Public Types | Public Member Functions
vertex_copy_map< SrcMeshT, DstMeshT > Class Template Reference

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.

Detailed Description

template<typename SrcMeshT, typename DstMeshT>
class viennagrid::vertex_copy_map< SrcMeshT, DstMeshT >

A helper class for element copy operation between two differen meshes.

Template Parameters:
SrcMeshTThe mesh type of the source mesh
DstMeshTThe mesh type of the destination mesh

Member Typedef Documentation


Constructor & Destructor Documentation

vertex_copy_map ( DstMeshT &  dst_mesh_) [inline]

The constructor, requires the destination mesh where the elements are copied to.

Parameters:
dst_mesh_The destination mesh

Member Function Documentation

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.

Parameters:
elThe element to be copied
toleranceA 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.

Parameters:
src_vertexThe vertex to be copied
toleranceA geometric tolerance for vertex creation

The documentation for this class was generated from the following file: