]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Fix regressions
authoreap <eap@opencascade.com>
Tue, 26 Aug 2014 11:58:38 +0000 (15:58 +0400)
committereap <eap@opencascade.com>
Tue, 26 Aug 2014 11:58:38 +0000 (15:58 +0400)
1D_mesh_LocalLength_00/A4
bugs_03/D5,D6
bugs_05/F8
bugs_19/X1

src/SMESH_SWIG/StdMeshersBuilder.py
src/SMESH_SWIG/smeshBuilder.py
src/StdMeshers/StdMeshers_Projection_2D.cxx

index 1e9c735332a99c79bbfadde90cb2a50c2a3eeb7f..0d6a55acbf8d98a54093e5566d24875220cf8562 100644 (file)
@@ -385,7 +385,7 @@ class StdMeshersBuilder_Segment(Mesh_Algorithm):
             algo = self.mesh.smeshpyD.CreateHypothesis("SegmentAroundVertex_0D", "libStdMeshersEngine.so")
             pass
         status = self.mesh.mesh.AddHypothesis(self.geom, algo)
-        TreatHypoStatus(status, "SegmentAroundVertex_0D", name, True)
+        TreatHypoStatus(status, "SegmentAroundVertex_0D", name, True, self.mesh)
         #
         from salome.smesh.smeshBuilder import IsEqual
         comFun = lambda hyp, args: IsEqual(hyp.GetLength(), args[0])
index dbbbe973b86b997aef913ba520c1968e4255f6ba..61c239b15741723c903ecfc8aefce0fdcb6d35cf 100644 (file)
@@ -1596,7 +1596,7 @@ class Mesh:
             AssureGeomPublished( self, geom, "shape for %s" % hyp.GetName())
             status = self.mesh.AddHypothesis(geom, hyp)
         else:
-            status = HYP_BAD_GEOMETRY
+            status = HYP_BAD_GEOMETRY,""
         hyp_name = GetName( hyp )
         geom_name = ""
         if geom:
@@ -1876,7 +1876,12 @@ class Mesh:
     #  @ingroup l2_grps_create
     def MakeGroupByIds(self, groupName, elementType, elemIDs):
         group = self.mesh.CreateGroup(elementType, groupName)
-        group.Add(elemIDs)
+        if hasattr( elemIDs, "GetIDs" ):
+            if hasattr( elemIDs, "SetMesh" ):
+                elemIDs.SetMesh( self.GetMesh() )
+            group.AddFrom( elemIDs )
+        else:
+            group.Add(elemIDs)
         return group
 
     ## Creates a mesh group by the given conditions
index a0eb3248fb1ba861a06fbb2dc991c4f69672767e..aef9d82b78a5c5dfae35012aa7e4243884992039 100644 (file)
@@ -553,7 +553,7 @@ namespace {
       const TopoDS_Shape&  srcV = srcExp.Current();
       const TopoDS_Shape&  tgtV = shape2ShapeMap( srcV, /*isSrc=*/true );
       const SMDS_MeshNode* srcN = SMESH_Algo::VertexNode( TopoDS::Vertex( srcV ), srcMeshDS );
-      const SMDS_MeshNode* tgtN = SMESH_Algo::VertexNode( TopoDS::Vertex( tgtV ), srcMeshDS );
+      const SMDS_MeshNode* tgtN = SMESH_Algo::VertexNode( TopoDS::Vertex( tgtV ), tgtMeshDS );
       if ( !srcN )
         continue;
       if ( !tgtN || tgtV.ShapeType() != TopAbs_VERTEX )