Integration of OCCT 6.5.0 from SVN
[occt.git] / src / AdvApprox / AdvApprox_DichoCutting.cxx
1 // File:        AdvApprox_DichoCutting.cxx
2 // Created:     Wed Jul  3 15:34:08 1996
3 // Author:      Joelle CHAUVET
4 //              <jct@sgi38>
5
6
7 #include <AdvApprox_DichoCutting.ixx>
8 #include <Precision.hxx>
9
10  AdvApprox_DichoCutting::AdvApprox_DichoCutting()
11 {
12 }
13
14 Standard_Boolean AdvApprox_DichoCutting::Value(const Standard_Real a,
15                                                 const Standard_Real b,
16                                                 Standard_Real& cuttingvalue) const
17 {
18 //  longueur minimum d'un intervalle pour F(U,V) : EPS1=1.e-9 (cf.MEPS1)
19   Standard_Real lgmin = 10*Precision::PConfusion();
20   cuttingvalue = (a+b) / 2;
21   return (Abs(b-a)>=2*lgmin);
22 }
23