Salome HOME
PAL7933. enable propagation of local hypotheses assigned to super-shapes
authoreap <eap@opencascade.com>
Fri, 4 Feb 2005 11:08:26 +0000 (11:08 +0000)
committereap <eap@opencascade.com>
Fri, 4 Feb 2005 11:08:26 +0000 (11:08 +0000)
src/StdMeshers/StdMeshers_Regular_1D.cxx

index bca9e63..020bb2d 100644 (file)
@@ -505,7 +505,9 @@ const list <const SMESHDS_Hypothesis *> & StdMeshers_Regular_1D::GetUsedHypothes
         aMesh.IsPropagatedHypothesis(aShape, _mainEdge))
     {
       // Propagation of 1D hypothesis from <aMainEdge> on this edge
-      _usedHypList = GetAppliedHypothesis(aMesh, _mainEdge);   // copy
+      //_usedHypList = GetAppliedHypothesis(aMesh, _mainEdge); // copy
+      // use a general method in order not to nullify _mainEdge
+      _usedHypList = SMESH_Algo::GetUsedHypothesis(aMesh, _mainEdge);  // copy
       nbHyp = _usedHypList.size();
     }
   }