From: asl Date: Fri, 9 Dec 2016 11:50:55 +0000 (+0300) Subject: debug of boundary points on faces in land cover X-Git-Tag: v1.6~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=19b1fa90450e4a855b7f213660f81d458b5ed430;p=modules%2Fhydro.git debug of boundary points on faces in land cover --- diff --git a/src/HYDROData/HYDROData_LCM_FaceClassifier.cxx b/src/HYDROData/HYDROData_LCM_FaceClassifier.cxx index 3fd68493..adfa27e3 100644 --- a/src/HYDROData/HYDROData_LCM_FaceClassifier.cxx +++ b/src/HYDROData/HYDROData_LCM_FaceClassifier.cxx @@ -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& 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); }