_remeshPara (harmonic),
_smouthSteps (1),
_sizeFactor (1),
+#if GMSH_MAJOR_VERSION >=4 && GMSH_MINOR_VERSION >=10
+ _meshCurvatureSize(0),
+#endif
_minSize (0),
_maxSize (1e22),
_secondOrder (false),
}
}
+#if GMSH_MAJOR_VERSION >=4 && GMSH_MINOR_VERSION >=10
+void GMSHPlugin_Hypothesis::SetMeshCurvatureSize(double theMeshCurvatureSize)
+{
+ if (theMeshCurvatureSize != _meshCurvatureSize)
+ {
+ _meshCurvatureSize = theMeshCurvatureSize;
+ NotifySubMeshesHypothesisModification();
+ }
+}
+#endif
+
void GMSHPlugin_Hypothesis::SetMaxSize(double theSize)
{
if (theSize != _maxSize)
" " << _remeshPara <<
" " << _smouthSteps <<
" " << _sizeFactor <<
+#if GMSH_MAJOR_VERSION >=4 && GMSH_MINOR_VERSION >=10
+ " " << _meshCurvatureSize <<
+#endif
" " << _maxSize <<
" " << _minSize <<
" " << (int)_secondOrder <<
else
load.clear(ios::badbit | load.rdstate());
+#if GMSH_MAJOR_VERSION >=4 && GMSH_MINOR_VERSION >=10
+ isOK = static_cast<bool>(load >> val);
+ if (isOK)
+ _meshCurvatureSize = val;
+ else
+ load.clear(ios::badbit | load.rdstate());
+#endif
+
isOK = static_cast<bool>(load >> val);
if (isOK)
_maxSize = val;