X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FSMESH_I%2FSMESH_NoteBook.cxx;h=14df8189a89d74779db64717bd067e78656d5600;hp=f148b4c9123e7799aad6a39bfda03b3f072ecbf1;hb=3efa541de7c2deaa85fcd37fc37e0a5dc23de100;hpb=c0d91c1d8e842ca29ba90007e9f22c9b8257e753 diff --git a/src/SMESH_I/SMESH_NoteBook.cxx b/src/SMESH_I/SMESH_NoteBook.cxx index f148b4c91..14df8189a 100644 --- a/src/SMESH_I/SMESH_NoteBook.cxx +++ b/src/SMESH_I/SMESH_NoteBook.cxx @@ -315,6 +315,7 @@ void SMESH_NoteBook::ReplaceVariables() aStates->IncrementState(); } } + // Case for NETGEN_Parameters_2D or NETGEN_Parameters_2D hypothesis else if(aStates->GetObjectType().IsEqual("NETGEN_Parameters_2D") || aStates->GetObjectType().IsEqual("NETGEN_Parameters")){ @@ -340,6 +341,31 @@ void SMESH_NoteBook::ReplaceVariables() } } + // Case for NETGEN_SimpleParameters_3D or NETGEN_SimpleParameters_2D hypothesis + else if(aStates->GetObjectType().IsEqual("NETGEN_SimpleParameters_3D") || + aStates->GetObjectType().IsEqual("NETGEN_SimpleParameters_2D")){ + + if((aMethod == "SetNumberOfSegments" || aMethod == "LocalLength") && + aStates->GetCurrectState().size() >= 1) { + if(!aStates->GetCurrectState().at(0).IsEmpty() ) + aCmd->SetArg(1,aStates->GetCurrectState().at(0)); + aStates->IncrementState(); + } + else if(aMethod == "SetMaxElementArea" && aStates->GetCurrectState().size() >= 2) { + if(!aStates->GetCurrectState().at(1).IsEmpty() ) + aCmd->SetArg(1,aStates->GetCurrectState().at(1)); + aStates->IncrementState(); + } + else if(aMethod == "SetMaxElementVolume" && aStates->GetCurrectState().size() >= 3) { + if(!aStates->GetCurrectState().at(2).IsEmpty() ) + aCmd->SetArg(1,aStates->GetCurrectState().at(2)); + aStates->IncrementState(); + } + else if(aMethod == "LengthFromEdges" || aMethod == "LengthFromFaces"){ + aStates->IncrementState(); + } + } + // Case for NumberOfLayers hypothesis else if(aStates->GetObjectType().IsEqual("NumberOfLayers")){ if(aMethod == "SetNumberOfLayers" && aStates->GetCurrectState().size() >= 1) {