_shape (aShape),
_isVolume(isVolume),
_optimize(true),
+ _fineness(NETGENPlugin_Hypothesis::GetDefaultFineness()),
_simpleHyp(NULL)
{
defaultParameters();
mparams.quad = 0;
else
mparams.quad = NETGENPlugin_Hypothesis_2D::GetDefaultQuadAllowed() ? 1 : 0;
+ _fineness = NETGENPlugin_Hypothesis::GetDefaultFineness();
}
//=============================================================================
mparams.quad = static_cast<const NETGENPlugin_Hypothesis_2D*>
(hyp)->GetQuadAllowed() ? 1 : 0;
_optimize = hyp->GetOptimize();
+ _fineness = hyp->GetFineness();
_simpleHyp = NULL;
SMESH_Gen_i* smeshGen_i = SMESH_Gen_i::GetSMESHGen();
if ( mparams.maxh == 0.0 )
mparams.maxh = occgeo.boundingbox.Diam();
- if ( _simpleHyp || mparams.minh == 0.0 )
+ if ( _simpleHyp || ( mparams.minh == 0.0 && _fineness != NETGENPlugin_Hypothesis::UserDefined))
mparams.minh = GetDefaultMinSize( _shape, mparams.maxh );
#ifdef NETGEN_NEW
occgeo.face_maxh = mparams.maxh;
const TopoDS_Shape& _shape;
bool _isVolume;
bool _optimize;
+ int _fineness;
const NETGENPlugin_SimpleHypothesis_2D * _simpleHyp;
std::map< int, std::pair<int,int> > _faceDescriptors;