From 2cef76d691a7dc0efeb653a45279ac1b065033a6 Mon Sep 17 00:00:00 2001 From: eap Date: Wed, 18 Apr 2007 06:50:12 +0000 Subject: [PATCH] bug 15579 (Mesh on shell is not updated after change Hypothesis NETGEN 2D) - algoKind.And( algoKind.IsApplicableTo( aSubShape )); + algoKind.Init( THypType::IsAlgo() ).And( THypType::IsApplicableTo( aSubShape )); --- src/SMESH/SMESH_Mesh.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/SMESH/SMESH_Mesh.cxx b/src/SMESH/SMESH_Mesh.cxx index cc5da1dd7..0f464bf0f 100644 --- a/src/SMESH/SMESH_Mesh.cxx +++ b/src/SMESH/SMESH_Mesh.cxx @@ -75,6 +75,8 @@ static int MYDEBUG = 0; #define cSMESH_Hyp(h) static_cast(h) +typedef SMESH_HypoFilter THypType; + //============================================================================= /*! * @@ -820,8 +822,7 @@ void SMESH_Mesh::NotifySubMeshesHypothesisModification(const SMESH_Hypothesis* h Unexpect aCatch(SalomeException); const SMESH_Algo *foundAlgo = 0; - SMESH_HypoFilter algoKind( SMESH_HypoFilter::IsAlgo() ); - SMESH_HypoFilter compatibleHypoKind; + SMESH_HypoFilter algoKind, compatibleHypoKind; list usedHyps; @@ -834,7 +835,7 @@ void SMESH_Mesh::NotifySubMeshesHypothesisModification(const SMESH_Hypothesis* h const TopoDS_Shape & aSubShape = aSubMesh->GetSubShape(); if ( !foundAlgo ) // init filter for algo search - algoKind.And( algoKind.IsApplicableTo( aSubShape )); + algoKind.Init( THypType::IsAlgo() ).And( THypType::IsApplicableTo( aSubShape )); const SMESH_Algo *algo = static_cast ( GetHypothesis( aSubShape, algoKind, true )); -- 2.39.2