mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-13 10:10:33 +05:00
Regression of 0020206: EDF SMESH 987: Netgen1D2D3D +submesh
in Compute(), fix sorting submeshes according to dim of shape the algo assigned to aShapeDim = GetShapeDim( algoShape ); + if ( algoShape.ShapeType() == TopAbs_COMPOUND ) + { + TopoDS_Iterator it( algoShape ); + aShapeDim += GetShapeDim( it.Value() ); + }
This commit is contained in:
parent
e06a1de08f
commit
248c36ec7a
@ -38,10 +38,7 @@
|
|||||||
#include "OpUtil.hxx"
|
#include "OpUtil.hxx"
|
||||||
#include "Utils_ExceptHandlers.hxx"
|
#include "Utils_ExceptHandlers.hxx"
|
||||||
|
|
||||||
#include <gp_Pnt.hxx>
|
#include <TopoDS_Iterator.hxx>
|
||||||
#include <BRep_Tool.hxx>
|
|
||||||
#include <TopTools_ListOfShape.hxx>
|
|
||||||
#include <TopTools_ListIteratorOfListOfShape.hxx>
|
|
||||||
|
|
||||||
#include "memoire.h"
|
#include "memoire.h"
|
||||||
|
|
||||||
@ -222,6 +219,11 @@ bool SMESH_Gen::Compute(SMESH_Mesh & aMesh,
|
|||||||
}
|
}
|
||||||
// add smToCompute to shDim2sm map
|
// add smToCompute to shDim2sm map
|
||||||
aShapeDim = GetShapeDim( algoShape );
|
aShapeDim = GetShapeDim( algoShape );
|
||||||
|
if ( algoShape.ShapeType() == TopAbs_COMPOUND )
|
||||||
|
{
|
||||||
|
TopoDS_Iterator it( algoShape );
|
||||||
|
aShapeDim += GetShapeDim( it.Value() );
|
||||||
|
}
|
||||||
shDim2sm.insert( make_pair( aShapeDim, smToCompute ));
|
shDim2sm.insert( make_pair( aShapeDim, smToCompute ));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user