]> SALOME platform Git repositories - plugins/blsurfplugin.git/commitdiff
Salome HOME
0021797: EDF 2343 SMESH: Evaluation of meshes give very different results compared...
authoreap <eap@opencascade.com>
Mon, 13 Aug 2012 11:04:53 +0000 (11:04 +0000)
committereap <eap@opencascade.com>
Mon, 13 Aug 2012 11:04:53 +0000 (11:04 +0000)
src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx

index 166b9984b48099a4c98bc4026e45e91d1b3c771a..86ebb0e642a86a590d2071e1fe63724db466b745 100644 (file)
@@ -2338,6 +2338,11 @@ bool BLSURFPlugin_BLSURF::Evaluate(SMESH_Mesh&         aMesh,
     //_angleMeshS    = hyp->GetAngleMeshS();
     _angleMeshC    = _hypothesis->GetAngleMeshC();
     _quadAllowed   = _hypothesis->GetQuadAllowed();
+  } else {
+    //0020968: EDF1545 SMESH: Problem in the creation of a mesh group on geometry
+    // GetDefaultPhySize() sometimes leads to computation failure
+    _phySize = aMesh.GetShapeDiagonalSize() / _gen->GetBoundaryBoxSegmentation();
+    MESSAGE("BLSURFPlugin_BLSURF::SetParameters using defaults");
   }
 
   bool IsQuadratic = false;