]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
0021530: EDF 2176 SMESH: Projection 1D-2D with compounds
authoreap <eap@opencascade.com>
Wed, 11 Apr 2012 13:10:03 +0000 (13:10 +0000)
committereap <eap@opencascade.com>
Wed, 11 Apr 2012 13:10:03 +0000 (13:10 +0000)
   Fix for the case of no vertex association

src/StdMeshers_I/StdMeshers_ProjectionSource1D_i.cxx
src/StdMeshers_I/StdMeshers_ProjectionSource2D_i.cxx
src/StdMeshers_I/StdMeshers_ProjectionSource3D_i.cxx

index 4797ff587c947f05ebb9191b6d2aa302ef51c5ab..b8acaa11bf75a013d29b5ad833a2491fc206dea1 100644 (file)
@@ -110,11 +110,8 @@ void StdMeshers_ProjectionSource1D_i::SetVertexAssociation(GEOM::GEOM_Object_ptr
     TopoDS_Shape v2 = StdMeshers_ObjRefUlils::GeomObjectToShape( targetVertex );
     this->GetImpl()->SetVertexAssociation( v1, v2 );
 
-    CORBA::String_var entry;
-    entry = sourceVertex->GetStudyEntry();
-    myShapeEntries[ SRC_VERTEX ] = entry.in();
-    entry = targetVertex->GetStudyEntry();
-    myShapeEntries[ TGT_VERTEX ] = entry.in();
+    myShapeEntries[ SRC_VERTEX ] = StdMeshers_ObjRefUlils::GeomObjectToEntry( sourceVertex );
+    myShapeEntries[ TGT_VERTEX ] = StdMeshers_ObjRefUlils::GeomObjectToEntry( targetVertex );
   }
   catch ( SALOME_Exception& S_ex ) {
     THROW_SALOME_CORBA_EXCEPTION( S_ex.what(), SALOME::BAD_PARAM );
index d716401799e263f943d996f77db60b15ca209025..5bdfb20871800d1ed28b975cc2cd3e867f5c73c9 100644 (file)
@@ -161,15 +161,10 @@ void StdMeshers_ProjectionSource2D_i::SetVertexAssociation(GEOM::GEOM_Object_ptr
     TopoDS_Shape v4 = StdMeshers_ObjRefUlils::GeomObjectToShape( targetVertex2 );
     this->GetImpl()->SetVertexAssociation( v1, v2, v3, v4 );
 
-    CORBA::String_var entry;
-    entry = sourceVertex1->GetStudyEntry();
-    myShapeEntries[ SRC_VERTEX1 ] = entry.in();
-    entry = sourceVertex2->GetStudyEntry();
-    myShapeEntries[ SRC_VERTEX2 ] = entry.in();
-    entry = targetVertex1->GetStudyEntry();
-    myShapeEntries[ TGT_VERTEX1 ] = entry.in();
-    entry = targetVertex2->GetStudyEntry();
-    myShapeEntries[ TGT_VERTEX2 ] = entry.in();
+    myShapeEntries[ SRC_VERTEX1 ] = StdMeshers_ObjRefUlils::GeomObjectToEntry( sourceVertex1 );
+    myShapeEntries[ SRC_VERTEX2 ] = StdMeshers_ObjRefUlils::GeomObjectToEntry( sourceVertex2 );
+    myShapeEntries[ TGT_VERTEX1 ] = StdMeshers_ObjRefUlils::GeomObjectToEntry( targetVertex1 );
+    myShapeEntries[ TGT_VERTEX2 ] = StdMeshers_ObjRefUlils::GeomObjectToEntry( targetVertex2 );
   }
   catch ( SALOME_Exception& S_ex ) {
     THROW_SALOME_CORBA_EXCEPTION( S_ex.what(), SALOME::BAD_PARAM );
index 4d90c3e0f746581fc051f1b983722cac473c83db..f57e06e3b88880e9800f94225fc3ce15cfff0a5d 100644 (file)
@@ -162,15 +162,10 @@ void StdMeshers_ProjectionSource3D_i::SetVertexAssociation(GEOM::GEOM_Object_ptr
     TopoDS_Shape v4 = StdMeshers_ObjRefUlils::GeomObjectToShape( targetVertex2 );
     this->GetImpl()->SetVertexAssociation( v1, v2, v3, v4 );
 
-    CORBA::String_var entry;
-    entry = sourceVertex1->GetStudyEntry();
-    myShapeEntries[ SRC_VERTEX1 ] = entry.in();
-    entry = sourceVertex2->GetStudyEntry();
-    myShapeEntries[ SRC_VERTEX2 ] = entry.in();
-    entry = targetVertex1->GetStudyEntry();
-    myShapeEntries[ TGT_VERTEX1 ] = entry.in();
-    entry = targetVertex2->GetStudyEntry();
-    myShapeEntries[ TGT_VERTEX2 ] = entry.in();
+    myShapeEntries[ SRC_VERTEX1 ] = StdMeshers_ObjRefUlils::GeomObjectToEntry( sourceVertex1 );
+    myShapeEntries[ SRC_VERTEX2 ] = StdMeshers_ObjRefUlils::GeomObjectToEntry( sourceVertex2 );
+    myShapeEntries[ TGT_VERTEX1 ] = StdMeshers_ObjRefUlils::GeomObjectToEntry( targetVertex1 );
+    myShapeEntries[ TGT_VERTEX2 ] = StdMeshers_ObjRefUlils::GeomObjectToEntry( targetVertex2 );
   }
   catch ( SALOME_Exception& S_ex ) {
     THROW_SALOME_CORBA_EXCEPTION( S_ex.what(), SALOME::BAD_PARAM );