From 9b739aaa014a60c5e10fa4f4f66e232d4b1febc3 Mon Sep 17 00:00:00 2001 From: eap Date: Thu, 16 May 2013 17:06:42 +0000 Subject: [PATCH] 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 --- src/StdMeshers/StdMeshers_Import_1D.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); } } -- 2.39.2