mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-26 17:30:35 +05:00
PAL13473 (Build repetitive mesh):
use hypotheses of Regular_1D only
This commit is contained in:
parent
34b74c20de
commit
df6acfab2c
@ -116,10 +116,17 @@ void StdMeshersGUI_LayerDistributionParamWdg::init()
|
||||
|
||||
myHypTypePopup = new QPopupMenu();
|
||||
|
||||
QStringList aHypTypeNameList = SMESH::GetAvailableHypotheses( false, 0 );
|
||||
// Add to pop-up hypotheses of "Regular_1D" algo
|
||||
myHypTypePopup->clear();
|
||||
for ( int i = 0, n = aHypTypeNameList.count(); i < n; i++ ) {
|
||||
myHypTypePopup->insertItem( aHypTypeNameList[ i ] );
|
||||
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 )
|
||||
{
|
||||
HypothesisData* hypData = SMESH::GetHypothesisData( *anIter );
|
||||
bool bidon;
|
||||
if ( SMESH::IsAvailableHypothesis( algoData, hypData->TypeName, bidon ))
|
||||
myHypTypePopup->insertItem( hypData->Label );
|
||||
}
|
||||
|
||||
connect( myCreateButton, SIGNAL(clicked()), SLOT(onCreate()));
|
||||
|
Loading…
Reference in New Issue
Block a user