X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FBLSURFPlugin%2FBLSURFPlugin_Hypothesis.cxx;fp=src%2FBLSURFPlugin%2FBLSURFPlugin_Hypothesis.cxx;h=92bb519a2d56bf4c1e1d73beda02197260387dcd;hb=5a7e2f62584a6864055ee2258cee0afecd733d9a;hp=ae1d60e33dd2732ffa13e8bb95b066207728afe6;hpb=5f9926ceaf6cc344dd5d5da4eb617bfb7556492d;p=plugins%2Fblsurfplugin.git diff --git a/src/BLSURFPlugin/BLSURFPlugin_Hypothesis.cxx b/src/BLSURFPlugin/BLSURFPlugin_Hypothesis.cxx index ae1d60e..92bb519 100644 --- a/src/BLSURFPlugin/BLSURFPlugin_Hypothesis.cxx +++ b/src/BLSURFPlugin/BLSURFPlugin_Hypothesis.cxx @@ -51,7 +51,7 @@ BLSURFPlugin_Hypothesis::BLSURFPlugin_Hypothesis (int hypId, int studyId, // to desable writing boundaries //_phyMin = _phyMax = _hgeoMin = _hgeoMax = undefinedDouble(); - + const char* intOptionNames[] = { "addsurf_ivertex", @@ -122,7 +122,7 @@ BLSURFPlugin_Hypothesis::BLSURFPlugin_Hypothesis (int hypId, int studyId, _charOptions.insert( charOptionNames[i] ); _option2value[ charOptionNames[i++] ].clear(); } - + _sizeMap.clear(); } @@ -144,6 +144,7 @@ void BLSURFPlugin_Hypothesis::SetPhysicalMesh(PhysicalMesh thePhysicalMesh) case DefaultSize: default: _phySize = GetDefaultPhySize(); + _gradation = GetDefaultGradation(); break; } NotifySubMeshesHypothesisModification(); @@ -407,9 +408,9 @@ std::ostream & BLSURFPlugin_Hypothesis::SaveTo(std::ostream & save) << " " << (int)_physicalMesh << " " << (int)_geometricMesh << " " << _phySize - << " " << _angleMeshS - << " " << _gradation - << " " << (int)_quadAllowed + << " " << _angleMeshS + << " " << _gradation + << " " << (int)_quadAllowed << " " << (int)_decimesh; save << " " << _phyMin << " " << _phyMax @@ -448,8 +449,8 @@ std::ostream & BLSURFPlugin_Hypothesis::SaveTo(std::ostream & save) } save << " " << "__ATTRACTORS_END__"; } - - + + return save; } @@ -513,31 +514,31 @@ std::istream & BLSURFPlugin_Hypothesis::LoadFrom(std::istream & load) _phyMin = val; else load.clear(std::ios::badbit | load.rdstate()); - + isOK = (load >> val); if (isOK) _phyMax = val; else load.clear(std::ios::badbit | load.rdstate()); - + isOK = (load >> val); if (isOK) _angleMeshC = val; else load.clear(std::ios::badbit | load.rdstate()); - + isOK = (load >> val); if (isOK) _hgeoMin = val; else load.clear(std::ios::badbit | load.rdstate()); - + isOK = (load >> val); if (isOK) _hgeoMax = val; else load.clear(std::ios::badbit | load.rdstate()); - + isOK = (load >> i); if (isOK) _verb = i;