From: eap Date: Thu, 16 May 2013 17:06:42 +0000 (+0000) Subject: 0022195: EDF SMESH: Mesh using existing elements. X-Git-Tag: V7_3_0a1~448 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9b739aaa014a60c5e10fa4f4f66e232d4b1febc3;p=modules%2Fsmesh.git 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 --- diff --git a/src/StdMeshers/StdMeshers_Import_1D.cxx b/src/StdMeshers/StdMeshers_Import_1D.cxx index 5de578356..03b89eda3 100644 --- a/src/StdMeshers/StdMeshers_Import_1D.cxx +++ b/src/StdMeshers/StdMeshers_Import_1D.cxx @@ -621,7 +621,7 @@ bool StdMeshers_Import_1D::Compute(SMESH_Mesh & theMesh, const TopoDS_Shape & th { if ( !_sourceHyp ) return false; - const vector& srcGroups = _sourceHyp->GetGroups(); + const vector& 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(); } }