Salome HOME
[bos #40505][CEA] Allow assign of 3D Tetra paramam on imported 2D mesh. cce/40505 29/head
authorcconopoima <cesar.conopoima@gmail.com>
Mon, 15 Jan 2024 10:21:12 +0000 (10:21 +0000)
committercconopoima <cesar.conopoima@gmail.com>
Thu, 25 Jan 2024 14:11:00 +0000 (14:11 +0000)
src/SMESH/SMESH_subMesh.cxx

index fd9da1f0f758657065c8e0820063be8a111b5300..18b6c3cdfe9687603d1dea4f8dacc19b5806ea71 100644 (file)
@@ -891,7 +891,10 @@ SMESH_Hypothesis::Hypothesis_Status
           ret = SMESH_Hypothesis::HYP_INCOMPATIBLE;
       }
       else if (!_father->IsUsedHypothesis( anHyp, this ))
-        ret = SMESH_Hypothesis::HYP_INCOMPATIBLE;
+      {
+        if ( anHyp->GetDim() == this->GetAlgo()->GetDim() )
+          ret = SMESH_Hypothesis::HYP_INCOMPATIBLE;
+      }
 
       if (SMESH_Hypothesis::IsStatusFatal( ret ))
       {