Index: graphics/inventor/files/patch-arc.c++ =================================================================== --- graphics/inventor/files/patch-arc.c++ (nonexistent) +++ graphics/inventor/files/patch-arc.c++ (working copy) @@ -0,0 +1,11 @@ +--- lib/database/src/so/nodes/nurbs/libnurbs/arc.c++.orig 2000-08-15 12:56:22 UTC ++++ lib/database/src/so/nodes/nurbs/libnurbs/arc.c++ +@@ -332,7 +332,7 @@ Arc::check( void ) + + inline long tooclose( REAL x, REAL y ) + { +- return (abs(x-y) < TOL) ? 1 : 0; ++ return (absr(x-y) < TOL) ? 1 : 0; + } + + Property changes on: graphics/inventor/files/patch-arc.c++ ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: graphics/inventor/files/patch-arctess.c++ =================================================================== --- graphics/inventor/files/patch-arctess.c++ (nonexistent) +++ graphics/inventor/files/patch-arctess.c++ (working copy) @@ -0,0 +1,35 @@ +--- lib/database/src/so/nodes/nurbs/libnurbs/arctess.c++.orig 2000-08-15 12:56:22 UTC ++++ lib/database/src/so/nodes/nurbs/libnurbs/arctess.c++ +@@ -247,8 +247,8 @@ ArcTessellator::pwl( Arc *arc, REAL s1, + + /* if(rate <= 0.06) rate = 0.06;*/ + +- int snsteps = 1 + (int) (abs(s2 - s1) / rate ); +- int tnsteps = 1 + (int) (abs(t2 - t1) / rate ); ++ int snsteps = 1 + (int) (absr(s2 - s1) / rate ); ++ int tnsteps = 1 + (int) (absr(t2 - t1) / rate ); + int nsteps = max(1,max( snsteps, tnsteps )); + + REAL sstepsize = (s2 - s1) / (REAL) nsteps; +@@ -395,8 +395,8 @@ ArcTessellator::tessellateNonlinear( Arc + vert->param[0] = u/w; + vert->param[1] = v/w; + #ifndef NOELIMINATION +- REAL ds = abs(vert[0].param[0] - vert[-1].param[0]); +- REAL dt = abs(vert[0].param[1] - vert[-1].param[1]); ++ REAL ds = absr(vert[0].param[0] - vert[-1].param[0]); ++ REAL dt = absr(vert[0].param[1] - vert[-1].param[1]); + int canremove = (dsparam[0] = u; + vert->param[1] = v; + #ifndef NOELIMINATION +- REAL ds = abs(vert[0].param[0] - vert[-1].param[0]); +- REAL dt = abs(vert[0].param[1] - vert[-1].param[1]); ++ REAL ds = absr(vert[0].param[0] - vert[-1].param[0]); ++ REAL dt = absr(vert[0].param[1] - vert[-1].param[1]); + int canremove = (ds