# | Line 230 | Line 230 | double wt; | |
---|---|---|
230 | { | |
231 | register int i; | |
232 | /* set number of divisions */ | |
233 | – | if (wt < (.25*PI)/ambdiv+FTINY) { |
234 | – | hp->nt = hp->np = 0; |
235 | – | return; /* zero samples */ |
236 | – | } |
233 | hp->nt = sqrt(ambdiv * wt / PI) + 0.5; | |
234 | + | i = ambacc > FTINY ? 3 : 1; /* minimum number of samples */ |
235 | + | if (hp->nt < i) |
236 | + | hp->nt = i; |
237 | hp->np = PI * hp->nt + 0.5; | |
238 | /* make axes */ | |
239 | VCOPY(hp->uz, r->ron); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |