0022195: EDF SMESH: Mesh using existing elements.

In Compute() call assure the source mesh is loaded:
_sourceHyp->GetGroups(/*loaded=*/true);

In getMaps(), do not clear n2n map to assure sharing nodes on EDGEs
for adjacent FACEs
This commit is contained in:
eap 2013-05-16 17:06:42 +00:00
parent 3010de27c3
commit 9b739aaa01

View File

@ -621,7 +621,7 @@ bool StdMeshers_Import_1D::Compute(SMESH_Mesh & theMesh, const TopoDS_Shape & th
{
if ( !_sourceHyp ) return false;
const vector<SMESH_Group*>& srcGroups = _sourceHyp->GetGroups();
const vector<SMESH_Group*>& srcGroups = _sourceHyp->GetGroups(/*loaded=*/true);
if ( srcGroups.empty() )
return error("Invalid source groups");
@ -1044,7 +1044,7 @@ void StdMeshers_Import_1D::getMaps(const SMESH_Mesh* srcMesh,
e2e = &iData->_e2e;
if ( iData->_copyMeshSubM.empty() )
{
n2n->clear();
// n2n->clear(); -- for sharing nodes on EDGEs
e2e->clear();
}
}