]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
Merge branch 'BR_LAND_COVER_MAP' of ssh://git.salome-platform.org/modules/hydro into...
authorisn <isn@opencascade.com>
Fri, 16 Oct 2015 09:09:56 +0000 (12:09 +0300)
committerisn <isn@opencascade.com>
Fri, 16 Oct 2015 09:09:56 +0000 (12:09 +0300)
Conflicts:
src/HYDRO_tests/test_HYDROData_LandCoverMap.cxx

1  2 
src/HYDROData/HYDROData_LandCoverMap.cxx
src/HYDRO_tests/test_HYDROData_LandCoverMap.cxx

index 1af26fdb902f4fd4c63970e07c81268dd3400deb,9405b14429dce280eda9a93ef37d77e584362850..6f7ecb62f9f9c33612944b1759fbf06421fedb44
  #include <TopoDS_Face.hxx>
  #include <TopoDS_Iterator.hxx>
  #include <TopoDS_Shell.hxx>
+ #include <TopExp_Explorer.hxx>
  #include <TopTools_ListIteratorOfListOfShape.hxx>
 +#include <BOPAlgo_PaveFiller.hxx>
 +#include <BRepTools.hxx>
 +#include <TopExp_Explorer.hxx>
 +#include <ShapeUpgrade_UnifySameDomain.hxx>
  
+ #include <QFile>
  #include <QString>
+ #include <QTextStream>
+ const char TELEMAC_FORMAT = 'f';
+ const int TELEMAC_PRECISION = 3;
  
  IMPLEMENT_STANDARD_HANDLE(HYDROData_LandCoverMap, HYDROData_Entity)
  IMPLEMENT_STANDARD_RTTIEXT(HYDROData_LandCoverMap, HYDROData_Entity)
index b29a3bbea12f95a332441b61d7cfb623071f8f14,2f077e1684553642d3ca233087a107dc47174d65..5168523c47438fef7edfb53a01fcd836db7952b3
@@@ -172,13 -202,11 +204,12 @@@ void test_HYDROData_LandCoverMap::test_
    TopTools_ListOfShape aList;
    aList.Append( aMap->FindByPoint( aPnt1, aType1 ) );
    aList.Append( aMap->FindByPoint( aPnt2, aType2 ) );
-   //aList.Append( aMap->FindByPoint( aPnt3, aType1 ) );
-   //aList.Append( aMap->FindByPoint( aPnt4, aType2 ) );
 -  //CPPUNIT_ASSERT_EQUAL( true, aMap->Merge( aList, "new" ) );
 +  CPPUNIT_ASSERT_EQUAL( true, aMap->Merge( aList, "new" ) );
  
 -  //TestViewer::show( aMap->GetShape(), AIS_Shaded, true );
 -  //TestViewer::show( BRepBuilderAPI_MakeEdge( aPnt1, aPnt2 ).Edge(), QColor( Qt::black ), AIS_Shaded );
 -  //TestViewer::AssertEqual( "LandCoverMap_Merge_1" );
++
 +  TestViewer::show( aMap->GetShape(), AIS_Shaded, true );
 +  //TestViewer::show( BRepBuilderAPI_MakeEdge( gp_Pnt(aPnt1.X(), aPnt1.Y(), 0), gp_Pnt(aPnt2.X(), aPnt2.Y(), 0) ).Edge(), QColor( Qt::blue ), AIS_Shaded );
 +  TestViewer::AssertEqual( "LandCoverMap_Merge_1" );
  
    aDoc->Close();
  }