Skip to content

Commit

Permalink
Merge pull request #61 from LIHPC-Computational-Geometry/issue#158
Browse files Browse the repository at this point in the history
Fix issue#158
  • Loading branch information
CharlesPignerol authored Dec 18, 2024
2 parents 249dc7a + 7144ad6 commit 95e1458
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 30 deletions.
24 changes: 0 additions & 24 deletions src/QtComponents/QtMgx3DMainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,6 @@ namespace QtComponents
_longCommandAction(0), _openCascadeLongCommandAction(0),
_executePythonScriptAction(0),
_distanceMeasurementAction(0), _angleMeasurementAction(0), _extremaMeshingEdgeLengthOnEdgeAction(0),
_topoOptimMeshMethod(0),
_topoInformationAction(0), _meshInformationAction(0),
_topoRefineAction(0), _topoSetDefaultNbMeshingEdgesAction(0),
_topoNew3x3BoxesWithTopoAction(0),
Expand Down Expand Up @@ -377,7 +376,6 @@ namespace QtComponents
_distanceMeasurementAction(wa._distanceMeasurementAction),
_angleMeasurementAction(wa._angleMeasurementAction),
_extremaMeshingEdgeLengthOnEdgeAction(wa._extremaMeshingEdgeLengthOnEdgeAction),
_topoOptimMeshMethod(wa._topoOptimMeshMethod),
_topoInformationAction(wa._topoInformationAction),
_meshInformationAction(wa._meshInformationAction),
_topoRefineAction(wa._topoRefineAction),
Expand Down Expand Up @@ -511,7 +509,6 @@ namespace QtComponents
_distanceMeasurementAction = wa._distanceMeasurementAction;
_angleMeasurementAction = wa._angleMeasurementAction;
_extremaMeshingEdgeLengthOnEdgeAction = wa._extremaMeshingEdgeLengthOnEdgeAction;
_topoOptimMeshMethod = wa._topoOptimMeshMethod;
_topoInformationAction = wa._topoInformationAction;
_meshInformationAction = wa._meshInformationAction;
_topoRefineAction = wa._topoRefineAction;
Expand Down Expand Up @@ -646,8 +643,6 @@ namespace QtComponents
_extremaMeshingEdgeLengthOnEdgeAction->setEnabled(enable);
if (0 != _meshInformationAction)
_meshInformationAction->setEnabled(enable);
if (0 != _topoOptimMeshMethod)
_topoOptimMeshMethod->setEnabled(enable);
if (0 != _topoInformationAction)
_topoInformationAction->setEnabled(enable);
if (0 != _topoRefineAction)
Expand Down Expand Up @@ -1789,7 +1784,6 @@ void QtMgx3DMainWindow::showReady ( )
#ifdef _DEBUG
_topologyMenu->addAction (getActions ( )._topoNew3x3BoxesWithTopoAction);
#endif
_topologyMenu->addAction(getActions()._topoOptimMeshMethod);
_topologyMenu->addAction(getActions()._topoInformationAction);

// Menu maillage :
Expand Down Expand Up @@ -2290,8 +2284,6 @@ void QtMgx3DMainWindow::showReady ( )
new QAction (QString::fromUtf8("Créer une grille de 3 X 3 boites avec les blocs ..."), this);
connect (_actions._topoNew3x3BoxesWithTopoAction, SIGNAL (triggered ( )), this, SLOT (new3x3BoxesWithTopoCallback ( )), defaultConnectionType);
#endif
_actions._topoOptimMeshMethod = new QAction(QString::fromUtf8("Optimise la méthode de maillage"), this);
connect(_actions._topoOptimMeshMethod, SIGNAL(triggered()), this, SLOT(optimMeshMethodCallback()), defaultConnectionType);
_actions._topoInformationAction = new QAction("Informations sur la topologie", this);
connect(_actions._topoInformationAction, SIGNAL(triggered()), this, SLOT(addTopoInformationCallback()), defaultConnectionType);

Expand Down Expand Up @@ -6692,22 +6684,6 @@ void QtMgx3DMainWindow::new3x3BoxesWithTopoCallback ()
CHECK_COMMAND_CREATION_STATUS
} // QtMgx3DMainWindow::new3x3BoxesWithTopoCallback ()


void QtMgx3DMainWindow::optimMeshMethodCallback ( )
{
UTF8String message (Charset::UTF_8);
BEGIN_QT_TRY_CATCH_BLOCK

message << "Optimisation de la méthode de maillage pour tous les blocs";

getTopoManager().replaceTransfiniteByDirectionalMeshMethodAsPossible();

COMPLETE_QT_TRY_CATCH_BLOCK (true, this, getAppTitle ( ))

CHECK_COMMAND_CREATION_STATUS

} // QtMgx3DMainWindow::optimMeshMethodCallback ( )

void QtMgx3DMainWindow::addTopoInformationCallback ( )
{
QtAutoWaitingCursor cursor (true);
Expand Down
6 changes: 0 additions & 6 deletions src/QtComponents/protected/QtComponents/QtMgx3DMainWindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,6 @@ class QtMgx3DMainWindow :
QAction *_displayLookupTableAction,
*_displayLookupTableEditorAction;
QAction *_distanceMeasurementAction, *_angleMeasurementAction, *_extremaMeshingEdgeLengthOnEdgeAction;
QAction *_topoOptimMeshMethod;
QAction *_topoInformationAction, *_meshInformationAction;
QAction *_topoRefineAction,
*_topoSetDefaultNbMeshingEdgesAction;
Expand Down Expand Up @@ -1127,11 +1126,6 @@ class QtMgx3DMainWindow :
*/
virtual void new3x3BoxesWithTopoCallback ();

/**
* Remplace la méthode de maillage Transfini par une méthode plus rapide du type directionnelle.
*/
virtual void optimMeshMethodCallback ();

/**
* Affiche une nouvelle fenêtre "Information sur la topologie".
*/
Expand Down

0 comments on commit 95e1458

Please sign in to comment.