]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
debug of boundary points on faces in land cover
authorasl <asl@opencascade.com>
Fri, 9 Dec 2016 11:50:55 +0000 (14:50 +0300)
committerasl <asl@opencascade.com>
Fri, 9 Dec 2016 11:50:55 +0000 (14:50 +0300)
src/HYDROData/HYDROData_LCM_FaceClassifier.cxx

index 3fd68493704bb21b98c6acd4703f84cb8e6d3dad..adfa27e3ed1c03fc99b3385bff2abd1c80e8232a 100644 (file)
@@ -45,7 +45,6 @@ Standard_Boolean HYDROData_FaceClassifier_BndBoxTreeSelector::Accept (const Stan
   Handle(Geom_Plane) Pl = HYDROData_LCM_FaceClassifier::GetPlane(f);
   Standard_Real u, v;
   ElSLib::Parameters(Pl->Pln(), gp_Pnt(myP.X(), myP.Y(), 0.0), u, v);
-
   TopAbs_State aState = class2d->Perform( gp_Pnt2d(u, v), Standard_False );
 
   if (aState == TopAbs_IN)
@@ -117,7 +116,7 @@ void HYDROData_LCM_FaceClassifier::Classify( const std::vector<gp_XY>& thePoints
     NB.Update(MinPT.X(), MinPT.Y(), MaxPT.X(), MaxPT.Y() );
 
     aTreeFiller.Add(i, NB);
-    BRepTopAdaptor_FClass2d* aClass2d = new BRepTopAdaptor_FClass2d( F, 0 );
+    BRepTopAdaptor_FClass2d* aClass2d = new BRepTopAdaptor_FClass2d( F, 1E-7 );
     aMapF2Class2d.Add(F, aClass2d);
     fclass2dpointers.push_back(aClass2d);
   }