myFuseEdges->setChecked( data.myFuseEdges );
// update widgets
- bool isCustom = (myFineness->currentIndex() == UserDefined);
- bool isSurfaceCurvature = (mySurfaceCurvature ? mySurfaceCurvature->checkState() == Qt::Checked : true);
- myFineness->setEnabled(isSurfaceCurvature);
- myGrowthRate->setEnabled(isCustom && isSurfaceCurvature);
- if ( myNbSegPerEdge )
- myNbSegPerEdge->setEnabled(isCustom && isSurfaceCurvature);
- if ( myNbSegPerRadius )
- myNbSegPerRadius->setEnabled(isCustom && isSurfaceCurvature);
+ ((NETGENPluginGUI_HypothesisCreator*) this )-> onSurfaceCurvatureChanged();
if ( myLocalSizeTable )
{
{
bool isSurfaceCurvature = (mySurfaceCurvature ? mySurfaceCurvature->isChecked() : true);
bool isCustom = (myFineness->currentIndex() == UserDefined);
+ myFineness->setEnabled(isSurfaceCurvature);
myGrowthRate->setEnabled(isCustom);
if ( myNbSegPerEdge )
myNbSegPerEdge->setEnabled(isCustom && isSurfaceCurvature);
// element size (regression on issue 0020452, note 0010898)
int iPrev = SMESH_MesherHelper::WrapIndex( i-1, nbSegments );
int iNext = SMESH_MesherHelper::WrapIndex( i+1, nbSegments );
- double sunH = segLen[ iPrev ] + segLen[ i ] + segLen[ iNext ];
- int nbSeg = ( int( segLen[ iPrev ] > sunH / 100.) +
- int( segLen[ i ] > sunH / 100.) +
- int( segLen[ iNext ] > sunH / 100.));
+ double sumH = segLen[ iPrev ] + segLen[ i ] + segLen[ iNext ];
+ int nbSeg = ( int( segLen[ iPrev ] > sumH / 100.) +
+ int( segLen[ i ] > sumH / 100.) +
+ int( segLen[ iNext ] > sumH / 100.));
if ( nbSeg > 0 )
- RestrictLocalSize( ngMesh, 0.5*(np1+np2), sunH / nbSeg );
+ RestrictLocalSize( ngMesh, 0.5*(np1+np2), sumH / nbSeg );
}
if ( isInternalWire )
{