]> SALOME platform Git repositories - plugins/ghs3dplugin.git/commitdiff
Salome HOME
22172: [CEA 790] create the groups corresponding to domains
authoreap <eap@opencascade.com>
Fri, 30 Aug 2013 08:13:34 +0000 (08:13 +0000)
committereap <eap@opencascade.com>
Fri, 30 Aug 2013 08:13:34 +0000 (08:13 +0000)
 Now group creation depends only on SetToMakeGroupsOfDomains flag

src/GHS3DPlugin/GHS3DPlugin_Hypothesis.cxx

index 29cd1e16fb30e0979a1fce5556d17dac68ad210c..68ba24643dbb3edee3b8e9f82ebfdefa13b1260c 100644 (file)
@@ -1380,10 +1380,10 @@ bool GHS3DPlugin_Hypothesis::SetParametersByMesh(const SMESH_Mesh* ,const TopoDS
  */
 //================================================================================
 
-bool GHS3DPlugin_Hypothesis::SetParametersByDefaults(const TDefaults&  /*dflts*/,
-                                                     const SMESH_Mesh* theMesh)
+bool GHS3DPlugin_Hypothesis::SetParametersByDefaults(const TDefaults&  dflts,
+                                                     const SMESH_Mesh* /*theMesh*/)
 {
-  myToMakeGroupsOfDomains = ( !theMesh || !theMesh->HasShapeToMesh() );
+  myToMakeGroupsOfDomains = ( !dflts._shape || dflts._shape->IsNull() );
   return true;
 }