Line 0
Link Here
|
|
|
1 |
--- lib/database/src/so/nodes/nurbs/libnurbs/arctess.c++.orig 2000-08-15 12:56:22 UTC |
2 |
+++ lib/database/src/so/nodes/nurbs/libnurbs/arctess.c++ |
3 |
@@ -247,8 +247,8 @@ ArcTessellator::pwl( Arc *arc, REAL s1, |
4 |
|
5 |
/* if(rate <= 0.06) rate = 0.06;*/ |
6 |
|
7 |
- int snsteps = 1 + (int) (abs(s2 - s1) / rate ); |
8 |
- int tnsteps = 1 + (int) (abs(t2 - t1) / rate ); |
9 |
+ int snsteps = 1 + (int) (absr(s2 - s1) / rate ); |
10 |
+ int tnsteps = 1 + (int) (absr(t2 - t1) / rate ); |
11 |
int nsteps = max(1,max( snsteps, tnsteps )); |
12 |
|
13 |
REAL sstepsize = (s2 - s1) / (REAL) nsteps; |
14 |
@@ -395,8 +395,8 @@ ArcTessellator::tessellateNonlinear( Arc |
15 |
vert->param[0] = u/w; |
16 |
vert->param[1] = v/w; |
17 |
#ifndef NOELIMINATION |
18 |
- REAL ds = abs(vert[0].param[0] - vert[-1].param[0]); |
19 |
- REAL dt = abs(vert[0].param[1] - vert[-1].param[1]); |
20 |
+ REAL ds = absr(vert[0].param[0] - vert[-1].param[0]); |
21 |
+ REAL dt = absr(vert[0].param[1] - vert[-1].param[1]); |
22 |
int canremove = (ds<geo_stepsize && dt<geo_stepsize) ? 1 : 0; |
23 |
REAL ods=0.0, odt=0.0; |
24 |
|
25 |
@@ -454,8 +454,8 @@ ArcTessellator::tessellateNonlinear( Arc |
26 |
vert->param[0] = u; |
27 |
vert->param[1] = v; |
28 |
#ifndef NOELIMINATION |
29 |
- REAL ds = abs(vert[0].param[0] - vert[-1].param[0]); |
30 |
- REAL dt = abs(vert[0].param[1] - vert[-1].param[1]); |
31 |
+ REAL ds = absr(vert[0].param[0] - vert[-1].param[0]); |
32 |
+ REAL dt = absr(vert[0].param[1] - vert[-1].param[1]); |
33 |
int canremove = (ds<geo_stepsize && dt<geo_stepsize) ? 1 : 0; |
34 |
REAL ods=0.0, odt=0.0; |
35 |
|