if (!asciiFound && !binaryFound)
GMFFileName.append(".mesh");
mesh_write_mesh(msh, GMFFileName.c_str());
- cout << GMFFileName << " created = " << SMESH_File(GMFFileName).exists() << endl;
+ //cout << GMFFileName << " created = " << SMESH_File(GMFFileName).exists() << endl;
}
/* retrieve mesh data (see meshgems/mesh.h) */
void BLSURFPluginGUI_HypothesisCreator::onStateChange()
{
- myStdWidget->myGradation->setEnabled( !myStdWidget->myAllowQuadrangles->isChecked() );
+ myStdWidget->onPhysicalMeshChanged();
}
-/**
+/**
* This method resets the content of the X, Y, Z widgets;
-**/
+ **/
void BLSURFPluginGUI_HypothesisCreator::clearEnforcedVertexWidgets()
{
myXCoord->setCleared(true);
void BLSURFPluginGUI_StdWidget::onPhysicalMeshChanged() {
bool isPhysicalGlobalSize = (myPhysicalMesh->currentIndex() == PhysicalGlobalSize);
- bool isPhysicalLocalSize = (myPhysicalMesh->currentIndex() == PhysicalLocalSize);
- bool isCustom = (isPhysicalGlobalSize || isPhysicalLocalSize) ;
- bool geomIsCustom = (myGeometricMesh->currentIndex() != DefaultGeom);
+ bool isPhysicalLocalSize = (myPhysicalMesh->currentIndex() == PhysicalLocalSize);
+ bool isCustom = (isPhysicalGlobalSize || isPhysicalLocalSize) ;
+ bool geomIsCustom = (myGeometricMesh->currentIndex() != DefaultGeom);
+ bool isQuadAllowed = (myAllowQuadrangles->isChecked() );
- myGradation->setEnabled(!isPhysicalGlobalSize || geomIsCustom);
+ myGradation->setEnabled( !isQuadAllowed && ( !isPhysicalGlobalSize || geomIsCustom ));
myPhySize->setEnabled(isCustom);
myPhySizeRel->setEnabled(isCustom);
}
void BLSURFPluginGUI_StdWidget::onGeometricMeshChanged() {
- bool isCustom = (myGeometricMesh->currentIndex() != DefaultGeom);
+ bool isCustom = (myGeometricMesh->currentIndex() != DefaultGeom);
bool isPhysicalLocalSize = (myPhysicalMesh->currentIndex() == PhysicalLocalSize);
+ bool isQuadAllowed = (myAllowQuadrangles->isChecked() );
GeomParamsGroupBox->setEnabled(isCustom);
- myGradation->setEnabled(isCustom || isPhysicalLocalSize);
+ myGradation->setEnabled( !isQuadAllowed && ( isCustom || isPhysicalLocalSize ));
if ( ! isCustom ) {
// hphy_flag = 0 and hgeo_flag = 0 is not allowed (spec)