mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-29 03:50:33 +05:00
PAL13473 (Build repetitive mesh):
fix changing 1D hypo type
This commit is contained in:
parent
44a5da549d
commit
2bb9a7b8b4
@ -119,9 +119,9 @@ void StdMeshersGUI_LayerDistributionParamWdg::init()
|
||||
// Add to pop-up hypotheses of "Regular_1D" algo
|
||||
myHypTypePopup->clear();
|
||||
HypothesisData* algoData = SMESH::GetHypothesisData( "Regular_1D" );
|
||||
QStringList aHypTypeNameList = SMESH::GetAvailableHypotheses( false, 0 );
|
||||
QStringList::const_iterator anIter = aHypTypeNameList.begin();
|
||||
for ( int i = 0; anIter != aHypTypeNameList.end(); ++anIter, ++i )
|
||||
myHypTypes = SMESH::GetAvailableHypotheses( false, 0 );
|
||||
QStringList::const_iterator anIter = myHypTypes.begin();
|
||||
for ( ; anIter != myHypTypes.end(); ++anIter )
|
||||
{
|
||||
HypothesisData* hypData = SMESH::GetHypothesisData( *anIter );
|
||||
bool bidon;
|
||||
@ -149,9 +149,16 @@ void StdMeshersGUI_LayerDistributionParamWdg::onHypTypePopup( int theIndex )
|
||||
gen->SetCurrentStudy( SALOMEDS::Study::_nil() );
|
||||
|
||||
// create a hyp
|
||||
QString aHypType = myHypTypePopup->text( theIndex );
|
||||
HypothesisData* aHypData = SMESH::GetHypothesisData(aHypType.latin1());
|
||||
HypothesisData* aHypData = 0;
|
||||
QStringList::const_iterator anIter = myHypTypes.begin();
|
||||
for ( ; !aHypData && anIter != myHypTypes.end(); ++anIter )
|
||||
{
|
||||
HypothesisData* hypData = SMESH::GetHypothesisData( *anIter );
|
||||
if ( myHypTypePopup->text( theIndex ) == hypData->Label )
|
||||
aHypData = hypData;
|
||||
}
|
||||
QString aServLib = aHypData->ServerLibName;
|
||||
QString aHypType = aHypData->TypeName;
|
||||
try {
|
||||
set( gen->CreateHypothesis(aHypType, aServLib));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user