Salome HOME
projects
/
modules
/
smesh.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Regression of bugs_13/N9
[modules/smesh.git]
/
src
/
StdMeshers
/
StdMeshers_Import_1D2D.cxx
diff --git
a/src/StdMeshers/StdMeshers_Import_1D2D.cxx
b/src/StdMeshers/StdMeshers_Import_1D2D.cxx
index 6aff7c2078072f33b097a32f716a5e43b500b2fe..636cd73ec006e4eec21bdfd1a88121e092febb41 100644
(file)
--- a/
src/StdMeshers/StdMeshers_Import_1D2D.cxx
+++ b/
src/StdMeshers/StdMeshers_Import_1D2D.cxx
@@
-97,6
+97,7
@@
StdMeshers_Import_1D2D::StdMeshers_Import_1D2D(int hypId, int studyId, SMESH_Gen
_compatibleHypothesis.push_back("ImportSource2D");
_requireDiscreteBoundary = false;
_compatibleHypothesis.push_back("ImportSource2D");
_requireDiscreteBoundary = false;
+ _supportSubmeshes = true;
}
//=============================================================================
}
//=============================================================================
@@
-280,7
+281,8
@@
bool StdMeshers_Import_1D2D::Compute(SMESH_Mesh & theMesh, const TopoDS_Shape &
{
// find a pre-existing node
dist2foundNodes.clear();
{
// find a pre-existing node
dist2foundNodes.clear();
- if ( existingNodeOcTr.NodesAround( SMESH_TNodeXYZ( *node ), dist2foundNodes, groupTol ))
+ existingNodeOcTr.NodesAround( SMESH_TNodeXYZ( *node ), dist2foundNodes, groupTol );
+ if ( !dist2foundNodes.empty() )
(*n2nIt).second = dist2foundNodes.begin()->second;
}
if ( !n2nIt->second )
(*n2nIt).second = dist2foundNodes.begin()->second;
}
if ( !n2nIt->second )