mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-04-08 10:47:27 +05:00
0021077: EDF 1695 SMESH: Netgen works bad with 1D hypothesis on an elliptic torus
Make propagation work w/o any hypotheses assigned to edges where an 1D hypothesis is propagated to.
This commit is contained in:
parent
9c0be12435
commit
0b8910a8fd
@ -30,6 +30,7 @@
|
|||||||
|
|
||||||
#include "SMDS_SetIterator.hxx"
|
#include "SMDS_SetIterator.hxx"
|
||||||
#include "SMESH_Algo.hxx"
|
#include "SMESH_Algo.hxx"
|
||||||
|
#include "SMESH_Gen.hxx"
|
||||||
#include "SMESH_HypoFilter.hxx"
|
#include "SMESH_HypoFilter.hxx"
|
||||||
#include "SMESH_Mesh.hxx"
|
#include "SMESH_Mesh.hxx"
|
||||||
#include "SMESH_subMesh.hxx"
|
#include "SMESH_subMesh.hxx"
|
||||||
@ -40,7 +41,7 @@
|
|||||||
#include <TopoDS.hxx>
|
#include <TopoDS.hxx>
|
||||||
|
|
||||||
#define DBGMSG(txt) \
|
#define DBGMSG(txt) \
|
||||||
// cout << txt << endl;
|
// cout << txt << endl;
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
@ -347,6 +348,10 @@ namespace {
|
|||||||
oppSM->ComputeStateEngine( SMESH_subMesh::CLEAN );
|
oppSM->ComputeStateEngine( SMESH_subMesh::CLEAN );
|
||||||
oppData->SetState( IN_CHAIN );
|
oppData->SetState( IN_CHAIN );
|
||||||
DBGMSG( "set IN_CHAIN on " << oppSM->GetId() );
|
DBGMSG( "set IN_CHAIN on " << oppSM->GetId() );
|
||||||
|
if ( oppSM->GetAlgoState() != SMESH_subMesh::HYP_OK )
|
||||||
|
// make oppSM check algo state
|
||||||
|
if ( SMESH_Algo* algo = mesh->GetGen()->GetAlgo( *mesh, anOppE ))
|
||||||
|
oppSM->AlgoStateEngine(SMESH_subMesh::ADD_FATHER_ALGO,algo);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
oppData->SetState( LAST_IN_CHAIN );
|
oppData->SetState( LAST_IN_CHAIN );
|
||||||
@ -455,6 +460,7 @@ namespace {
|
|||||||
|
|
||||||
void PropagationMgr::Set(SMESH_subMesh * submesh)
|
void PropagationMgr::Set(SMESH_subMesh * submesh)
|
||||||
{
|
{
|
||||||
|
if ( findData( submesh )) return;
|
||||||
DBGMSG( "PropagationMgr::Set() on " << submesh->GetId() );
|
DBGMSG( "PropagationMgr::Set() on " << submesh->GetId() );
|
||||||
EventListenerData* data = new PropagationMgrData();
|
EventListenerData* data = new PropagationMgrData();
|
||||||
submesh->SetEventListener( getListener(), data, submesh );
|
submesh->SetEventListener( getListener(), data, submesh );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user