Salome HOME
PAL13639 (EDF PAL 317 : SMESH : Create "0D Hypothesis")
authoreap <eap@opencascade.com>
Mon, 19 Feb 2007 15:52:32 +0000 (15:52 +0000)
committereap <eap@opencascade.com>
Mon, 19 Feb 2007 15:52:32 +0000 (15:52 +0000)
   add 0D algo

src/SMESH/SMESH_Hypothesis.cxx
src/SMESH/SMESH_Hypothesis.hxx

index cc179d31cdf03bf812855d84a6235978f9308d3c..4650472cac8407350b1d927d4e0f55b64cb1a293 100644 (file)
@@ -126,14 +126,6 @@ void SMESH_Hypothesis::NotifySubMeshesHypothesisModification()
     {
       SMESH_Mesh* mesh = (*itm).second;
       mesh->NotifySubMeshesHypothesisModification( this );
-//       const list<SMESH_subMesh*>& subMeshes =
-//      mesh->GetSubMeshUsingHypothesis(this);
-
-//       //for all subMeshes using hypothesis
-       
-//       list<SMESH_subMesh*>::const_iterator its;
-//       for (its = subMeshes.begin(); its != subMeshes.end(); its++)
-//     (*its)->ComputeStateEngine(SMESH_subMesh::MODIF_HYP);
     }
 }
 
@@ -145,9 +137,6 @@ void SMESH_Hypothesis::NotifySubMeshesHypothesisModification()
 
 const char* SMESH_Hypothesis::GetLibName() const
 {
-//   MESSAGE("SMESHDS_Hypothesis::GetLibName");
-//   SCRUTE(_LibName);
-//   SCRUTE(&_LibName);
   return _libName.c_str();
 }
 
@@ -159,6 +148,5 @@ const char* SMESH_Hypothesis::GetLibName() const
 
 void SMESH_Hypothesis::SetLibName(const char* theLibName)
 {
-//   MESSAGE("SMESHDS_Hypothesis::SetLibName");
   _libName = string(theLibName);
 }
index 8760b188387312cd6919bae8c99d9366744f8a07..1b7146371e35b6d878c30aaf1d4279ff0a671541 100644 (file)
@@ -84,7 +84,7 @@ public:
    * dimention can be assigned to the shape
    */
   virtual bool IsAuxiliary() const
-  { return GetType() == PARAM_ALGO && _param_algo_dim <= 0; }
+  { return GetType() == PARAM_ALGO && _param_algo_dim < 0; }
 
 protected:
   SMESH_Gen* _gen;