mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-15 19:40:36 +05:00
*** empty log message ***
This commit is contained in:
parent
c0d91c1d8e
commit
3efa541de7
@ -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) {
|
||||
|
@ -4548,3 +4548,71 @@ class NETGENPlugin_Hypothesis_2D(NETGENPlugin._objref_NETGENPlugin_Hypothesis_2D
|
||||
|
||||
#Registering the new proxy for NETGENPlugin_Hypothesis_2D
|
||||
omniORB.registerObjref(NETGENPlugin._objref_NETGENPlugin_Hypothesis_2D._NP_RepositoryId, NETGENPlugin_Hypothesis_2D)
|
||||
|
||||
|
||||
class NETGEN_SimpleParameters_2D(NETGENPlugin._objref_NETGENPlugin_SimpleHypothesis_2D):
|
||||
|
||||
## Set Number of Segments parameter value
|
||||
# @param nbSeg numerical value or name of variable from notebook
|
||||
def SetNumberOfSegments(self, nbSeg):
|
||||
lastParameters = NETGENPlugin._objref_NETGENPlugin_SimpleHypothesis_2D.GetLastParameters(self)
|
||||
nbSeg, parameters = ParseParameters(lastParameters,2,1,nbSeg)
|
||||
NETGENPlugin._objref_NETGENPlugin_SimpleHypothesis_2D.SetParameters(self,parameters)
|
||||
NETGENPlugin._objref_NETGENPlugin_SimpleHypothesis_2D.SetNumberOfSegments(self, nbSeg)
|
||||
|
||||
## Set Local Length parameter value
|
||||
# @param length numerical value or name of variable from notebook
|
||||
def SetLocalLength(self, length):
|
||||
lastParameters = NETGENPlugin._objref_NETGENPlugin_SimpleHypothesis_2D.GetLastParameters(self)
|
||||
length, parameters = ParseParameters(lastParameters,2,1,length)
|
||||
NETGENPlugin._objref_NETGENPlugin_SimpleHypothesis_2D.SetParameters(self,parameters)
|
||||
NETGENPlugin._objref_NETGENPlugin_SimpleHypothesis_2D.SetLocalLength(self, length)
|
||||
|
||||
## Set Max Element Area parameter value
|
||||
# @param area numerical value or name of variable from notebook
|
||||
def SetMaxElementArea(self, area):
|
||||
lastParameters = NETGENPlugin._objref_NETGENPlugin_SimpleHypothesis_2D.GetLastParameters(self)
|
||||
area, parameters = ParseParameters(lastParameters,2,2,area)
|
||||
NETGENPlugin._objref_NETGENPlugin_SimpleHypothesis_2D.SetParameters(self,parameters)
|
||||
NETGENPlugin._objref_NETGENPlugin_SimpleHypothesis_2D.SetMaxElementArea(self, area)
|
||||
|
||||
#Registering the new proxy for NETGEN_SimpleParameters_2D
|
||||
omniORB.registerObjref(NETGENPlugin._objref_NETGENPlugin_SimpleHypothesis_2D._NP_RepositoryId, NETGEN_SimpleParameters_2D)
|
||||
|
||||
class NETGEN_SimpleParameters_3D(NETGENPlugin._objref_NETGENPlugin_SimpleHypothesis_3D):
|
||||
## Set Number of Segments parameter value
|
||||
# @param nbSeg numerical value or name of variable from notebook
|
||||
def SetNumberOfSegments(self, nbSeg):
|
||||
lastParameters = NETGENPlugin._objref_NETGENPlugin_SimpleHypothesis_3D.GetLastParameters(self)
|
||||
nbSeg, parameters = ParseParameters(lastParameters,3,1,nbSeg)
|
||||
NETGENPlugin._objref_NETGENPlugin_SimpleHypothesis_3D.SetParameters(self,parameters)
|
||||
NETGENPlugin._objref_NETGENPlugin_SimpleHypothesis_3D.SetNumberOfSegments(self, nbSeg)
|
||||
|
||||
## Set Local Length parameter value
|
||||
# @param length numerical value or name of variable from notebook
|
||||
def SetLocalLength(self, length):
|
||||
lastParameters = NETGENPlugin._objref_NETGENPlugin_SimpleHypothesis_3D.GetLastParameters(self)
|
||||
length, parameters = ParseParameters(lastParameters,3,1,length)
|
||||
NETGENPlugin._objref_NETGENPlugin_SimpleHypothesis_3D.SetParameters(self,parameters)
|
||||
NETGENPlugin._objref_NETGENPlugin_SimpleHypothesis_3D.SetLocalLength(self, length)
|
||||
|
||||
## Set Max Element Area parameter value
|
||||
# @param area numerical value or name of variable from notebook
|
||||
def SetMaxElementArea(self, area):
|
||||
lastParameters = NETGENPlugin._objref_NETGENPlugin_SimpleHypothesis_3D.GetLastParameters(self)
|
||||
area, parameters = ParseParameters(lastParameters,3,2,area)
|
||||
NETGENPlugin._objref_NETGENPlugin_SimpleHypothesis_3D.SetParameters(self,parameters)
|
||||
NETGENPlugin._objref_NETGENPlugin_SimpleHypothesis_3D.SetMaxElementArea(self, area)
|
||||
|
||||
|
||||
## Set Max Element Volume parameter value
|
||||
# @param volume numerical value or name of variable from notebook
|
||||
def SetMaxElementVolume(self, volume):
|
||||
lastParameters = NETGENPlugin._objref_NETGENPlugin_SimpleHypothesis_3D.GetLastParameters(self)
|
||||
volume, parameters = ParseParameters(lastParameters,3,3,volume)
|
||||
NETGENPlugin._objref_NETGENPlugin_SimpleHypothesis_3D.SetParameters(self,parameters)
|
||||
NETGENPlugin._objref_NETGENPlugin_SimpleHypothesis_3D.SetMaxElementVolume(self, volume)
|
||||
|
||||
|
||||
#Registering the new proxy for NETGEN_SimpleParameters_3D
|
||||
omniORB.registerObjref(NETGENPlugin._objref_NETGENPlugin_SimpleHypothesis_3D._NP_RepositoryId, NETGEN_SimpleParameters_3D)
|
||||
|
Loading…
Reference in New Issue
Block a user