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 bca9e634c91ddb24d8961ae8bce2e45f123f098c..020bb2d522933a2b95d3d7592e13b5b53a35be4d 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
         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();
     }
   }
       nbHyp = _usedHypList.size();
     }
   }