added option to copy adjacency for mesh copy function

This commit is contained in:
Luigi Malomo 2014-09-10 00:50:10 +00:00
parent 9fa2820419
commit e5ca4bf8c7
1 changed files with 2 additions and 2 deletions

View File

@ -395,10 +395,10 @@ static void Mesh(MeshLeft& ml, ConstMeshRight& mr, const bool selected = false,
/*! \brief Copy the second mesh over the first one.
The first mesh is destroyed. If requested only the selected elements are copied.
*/
static void MeshCopy(MeshLeft& ml, ConstMeshRight& mr, bool selected=false)
static void MeshCopy(MeshLeft& ml, ConstMeshRight& mr, bool selected=false, const bool adjFlag = false)
{
ml.Clear();
Mesh(ml,mr,selected);
Mesh(ml,mr,selected,adjFlag);
ml.bbox.Import(mr.bbox);
}
/*! \brief %Append only the selected elements of second mesh to the first one.