mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-03-01 01:25:36 +05:00
Modif forced by changes in SMESH_MeshEditor::FindFaceInSet()
This commit is contained in:
parent
c5c2208a8c
commit
830094fe0a
@ -3243,8 +3243,13 @@ void SMESH_Pattern::
|
|||||||
myPolyElems.reserve( myIdsOnBoundary.size() );
|
myPolyElems.reserve( myIdsOnBoundary.size() );
|
||||||
|
|
||||||
// make a set of refined elements
|
// make a set of refined elements
|
||||||
set< const SMDS_MeshElement* > avoidSet, elemSet;
|
map<int,const SMDS_MeshElement* > avoidSet, elemSet;
|
||||||
avoidSet.insert( myElements.begin(), myElements.end() );
|
std::vector<const SMDS_MeshElement*>::iterator itv = myElements.begin();
|
||||||
|
for(; itv!=myElements.end(); itv++) {
|
||||||
|
const SMDS_MeshElement* el = (*itv);
|
||||||
|
avoidSet.insert( make_pair(el->GetID(),el) );
|
||||||
|
}
|
||||||
|
//avoidSet.insert( myElements.begin(), myElements.end() );
|
||||||
|
|
||||||
map< TNodeSet, list< list< int > > >::iterator indListIt, nn_IdList;
|
map< TNodeSet, list< list< int > > >::iterator indListIt, nn_IdList;
|
||||||
|
|
||||||
@ -3274,7 +3279,7 @@ void SMESH_Pattern::
|
|||||||
SMESH_MeshEditor::FindFaceInSet( n1, n2, elemSet, avoidSet );
|
SMESH_MeshEditor::FindFaceInSet( n1, n2, elemSet, avoidSet );
|
||||||
if ( face )
|
if ( face )
|
||||||
{
|
{
|
||||||
avoidSet.insert ( face );
|
avoidSet.insert ( make_pair(face->GetID(),face) );
|
||||||
myPolyElems.push_back( face );
|
myPolyElems.push_back( face );
|
||||||
|
|
||||||
// some links of <face> are split;
|
// some links of <face> are split;
|
||||||
@ -3395,7 +3400,7 @@ void SMESH_Pattern::
|
|||||||
while ( eIt->more() )
|
while ( eIt->more() )
|
||||||
{
|
{
|
||||||
const SMDS_MeshElement* elem = eIt->next();
|
const SMDS_MeshElement* elem = eIt->next();
|
||||||
if ( !volTool.Set( elem ) || !avoidSet.insert( elem ).second )
|
if ( !volTool.Set( elem ) || !avoidSet.insert( make_pair(elem->GetID(),elem) ).second )
|
||||||
continue; // skip faces or refined elements
|
continue; // skip faces or refined elements
|
||||||
// add polyhedron definition
|
// add polyhedron definition
|
||||||
myPolyhedronQuantities.push_back(vector<int> ());
|
myPolyhedronQuantities.push_back(vector<int> ());
|
||||||
|
Loading…
Reference in New Issue
Block a user