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 );
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 );
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 );