Changes for OCC 6.5

This commit is contained in:
Gerhard Kitzler 2014-01-16 08:49:20 +00:00
parent 204e29ed86
commit 682983901f
3 changed files with 8 additions and 4 deletions

View File

@ -243,8 +243,8 @@ static void PutInBounds (const TopoDS_Face& F,
Standard_Integer i, nbExt = anExtPS.NbExt(); Standard_Integer i, nbExt = anExtPS.NbExt();
Extrema_POnSurf aPOnSurf; Extrema_POnSurf aPOnSurf;
for (i = 1; i <= nbExt; ++i ) for (i = 1; i <= nbExt; ++i )
if (anExtPS.Value( i ) <= TolE) // V6.3 // if (anExtPS.Value( i ) <= TolE) // V6.3
// if (anExtPS.SquareDistance( i ) <= TolE) // V6.5 if (anExtPS.SquareDistance( i ) <= TolE) // V6.5
{ {
aPOnSurf = anExtPS.Point( i ); aPOnSurf = anExtPS.Point( i );
break; break;

View File

@ -69,6 +69,10 @@
static char* name = new char[100]; static char* name = new char[100];
static int nbe = 0; static int nbe = 0;
#ifdef WIN32
#define M_PI 3.14159265358979323846
#endif
//======================================================================= //=======================================================================
//function : Partition_Loop //function : Partition_Loop
//purpose : //purpose :

View File

@ -1169,8 +1169,8 @@ static void findEqual (const TopTools_ListOfShape& EL1,
for (; j<=nbj && ok; ++j) { for (; j<=nbj && ok; ++j) {
if (Extrema.IsMin(j)) { if (Extrema.IsMin(j)) {
hasMin = Standard_True; hasMin = Standard_True;
ok = Extrema.Value(j) <= tol; // V6.3 // ok = Extrema.Value(j) <= tol; // V6.3
// ok = Extrema.SquareDistance(j) <= tol; // V6.5 ok = Extrema.SquareDistance(j) <= tol; // V6.5
} }
} }
} }