_compatibleHypothesis.push_back("ImportSource2D");
_requireDiscreteBoundary = false;
+ _supportSubmeshes = true;
}
//=============================================================================
existingNodes.insert( n );
}
- // get EDGESs and their ids and get existing nodes on EDGEs
+ // get EDGEs and their ids and get existing nodes on EDGEs
vector< TopoDS_Edge > edges;
for ( exp.Init( theShape, TopAbs_EDGE ); exp.More(); exp.Next() )
{
{
// 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 )